.tob-guide {
  --tob-purple: #ab82d8;
  --tob-purple-bright: #c49aee;
  --tob-red: #d2676c;
  --tob-red-bright: #ef858b;
  --tob-gold: #d8ae55;
  --tob-blue: #72a7df;
  --tob-surface: rgba(13, 17, 29, 0.9);
  --tob-surface-soft: rgba(19, 23, 38, 0.76);
  --tob-border: rgba(171, 130, 216, 0.24);
}

.tob-guide code {
  border: 1px solid rgba(171, 130, 216, 0.3);
  border-radius: 5px;
  padding: 0.08em 0.34em;
  color: #eadcff;
  background: rgba(92, 57, 126, 0.24);
  font-size: 0.9em;
}

.tob-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(171, 130, 216, 0.16);
  padding: 50px 0 56px;
  background:
    radial-gradient(circle at 82% 24%, rgba(111, 65, 138, 0.24), transparent 31rem),
    radial-gradient(circle at 18% 20%, rgba(134, 36, 50, 0.13), transparent 25rem),
    linear-gradient(180deg, rgba(8, 10, 19, 0.52), rgba(8, 10, 19, 0.08));
}

.tob-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(216, 174, 85, 0.42), transparent);
}

.tob-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
  align-items: center;
  gap: 30px 54px;
}

.tob-hero__copy {
  min-width: 0;
  padding-block: 10px;
}

.tob-guide .tob-hero .guide-article-hero__logo {
  width: 144px;
  height: 74px;
  margin: 0 0 18px;
}

.tob-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.02;
  text-wrap: balance;
}

.tob-hero .hero__lead {
  max-width: 65ch;
  margin: 22px 0 0;
}

.tob-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.tob-hero__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid rgba(171, 130, 216, 0.32);
  border-radius: 999px;
  padding: 9px 15px;
  color: #d9c7ef;
  background: rgba(32, 22, 45, 0.55);
  font-size: 13px;
  font-weight: 850;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease;
}

.tob-hero__links a:hover {
  border-color: rgba(216, 174, 85, 0.58);
  color: #f6d992;
  background: rgba(68, 46, 29, 0.34);
}

.tob-hero__links a:focus-visible,
.tob-safe-tiles a:focus-visible {
  outline: 3px solid #f1c96e;
  outline-offset: 4px;
}

.tob-hero__figure {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(171, 130, 216, 0.3);
  border-radius: 20px;
  padding: 18px 18px 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(171, 130, 216, 0.17), transparent 42%),
    linear-gradient(160deg, rgba(24, 25, 42, 0.92), rgba(7, 9, 16, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.tob-hero__figure::before {
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(216, 174, 85, 0.17);
  border-radius: 50%;
  content: "";
}

.tob-hero__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  height: 390px;
  object-fit: contain;
}

.tob-hero__figure figcaption {
  position: relative;
  z-index: 1;
  max-width: 45ch;
  margin-top: 4px;
  color: #909ab0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.tob-facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.tob-facts > div {
  position: relative;
  min-width: 0;
  border: 1px solid var(--tob-border);
  border-radius: 9px;
  padding: 14px 15px 14px 20px;
  overflow: hidden;
  background: rgba(12, 17, 29, 0.78);
}

.tob-facts > div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: var(--tob-purple);
}

.tob-facts > div:nth-child(3n + 2)::before {
  background: var(--tob-red);
}

.tob-facts > div:nth-child(3n)::before {
  background: var(--tob-gold);
}

.tob-facts dt {
  color: #8894aa;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tob-facts dd {
  margin: 5px 0 0;
  color: #e9edf6;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.4;
}

.tob-guide .guide-layout {
  grid-template-columns: minmax(210px, 240px) minmax(0, 900px);
  gap: 48px;
}

.tob-guide .guide-toc {
  border-color: var(--tob-border);
}

.tob-guide .guide-toc a:hover {
  border-left-color: var(--tob-purple);
  color: #e2d2f4;
  background: rgba(171, 130, 216, 0.08);
}

.tob-guide .guide-article > section {
  scroll-margin-top: 140px;
}

.tob-guide .guide-article .kicker {
  color: var(--tob-purple-bright);
}

.tob-figure {
  margin: 0;
}

.tob-figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tob-figure figcaption {
  margin-top: 10px;
  color: #8f9aaf;
  font-size: 12.5px;
  line-height: 1.55;
}

.tob-access {
  display: grid;
  grid-template-columns: minmax(230px, 0.76fr) minmax(340px, 1.24fr);
  align-items: start;
  gap: 24px;
  margin-top: 28px;
}

.tob-route,
.tob-sequence {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tob-step;
}

.tob-route li {
  display: grid;
  min-height: 52px;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(171, 130, 216, 0.2);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(18, 18, 31, 0.72);
  counter-increment: tob-step;
}

.tob-route li::before {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(171, 130, 216, 0.5);
  border-radius: 999px;
  content: counter(tob-step);
  color: #eadcff;
  background: rgba(90, 53, 124, 0.3);
  font-size: 13px;
  font-weight: 850;
}

.tob-teleport {
  border: 1px solid rgba(171, 130, 216, 0.3);
  border-radius: 10px;
  padding: 10px;
  background: #080a11;
}

.tob-teleport img {
  width: 100%;
}

.tob-note,
.tob-warning {
  margin-top: 24px;
  border: 1px solid rgba(216, 174, 85, 0.34);
  border-left: 4px solid var(--tob-gold);
  border-radius: 9px;
  padding: 18px 20px;
  background: rgba(65, 48, 24, 0.18);
}

.tob-note > strong,
.tob-warning > strong {
  display: block;
  margin-bottom: 6px;
  color: #f1d38d;
}

.tob-note p,
.tob-warning p {
  font-size: 14px;
  line-height: 1.65;
}

.tob-prep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.tob-prep-grid article {
  border: 1px solid var(--tob-border);
  border-radius: 11px;
  padding: 21px;
  background:
    linear-gradient(155deg, rgba(31, 24, 43, 0.72), rgba(12, 16, 28, 0.9));
}

.tob-prep-grid__label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--tob-purple-bright);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tob-prep-grid ul {
  display: grid;
  gap: 8px;
  margin: 13px 0 0;
  padding-left: 18px;
}

.tob-prep-grid li {
  font-size: 13.5px;
  line-height: 1.55;
}

.tob-table-scroll {
  max-width: 100%;
  margin-top: 26px;
  overflow-x: auto;
  border: 1px solid var(--tob-border);
  border-radius: 11px;
  background: rgba(8, 11, 19, 0.82);
  scrollbar-color: var(--tob-purple) #17111f;
}

.tob-table-scroll:focus-visible {
  outline: 3px solid var(--tob-purple-bright);
  outline-offset: 4px;
}

.tob-gear-table {
  width: 100%;
  min-width: 830px;
  border-collapse: collapse;
  color: #bbc4d4;
  font-size: 13px;
  line-height: 1.5;
}

.tob-gear-table caption {
  padding: 16px;
  color: #e6d7f4;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
}

.tob-gear-table th,
.tob-gear-table td {
  border-top: 1px solid rgba(171, 130, 216, 0.14);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.tob-gear-table thead th {
  color: #9faabd;
  background: rgba(171, 130, 216, 0.08);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tob-gear-table tbody th {
  color: #f0e8f8;
  white-space: nowrap;
}

.tob-gear-table tbody tr:hover {
  background: rgba(171, 130, 216, 0.04);
}

.tob-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tob-setup-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--tob-border);
  border-radius: 13px;
  padding: 17px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(171, 130, 216, 0.1), transparent 18rem),
    rgba(12, 16, 27, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.tob-setup-card__heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tob-setup-card__heading > span {
  display: grid;
  min-width: 52px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(216, 174, 85, 0.42);
  border-radius: 999px;
  color: #f0d28d;
  background: rgba(74, 54, 23, 0.28);
  font-size: 11px;
  font-weight: 900;
}

.tob-setup-card__heading p {
  color: #8f9aaf;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tob-setup-card__heading h3 {
  margin-top: 3px;
  font-size: 17px;
}

.tob-setup-card figure {
  border: 1px solid rgba(171, 130, 216, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: #06080d;
}

.tob-setup-card figure img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: contain;
  image-rendering: auto;
}

.tob-setup-card dl {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
}

.tob-setup-card dl > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 0;
}

.tob-setup-card dt {
  color: #8e9bb0;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}

.tob-setup-card dd {
  margin: 0;
  color: #bac4d5;
  font-size: 13px;
  line-height: 1.55;
}

.tob-phase-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.tob-phase-nav a {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  border: 1px solid var(--tob-border);
  border-radius: 11px;
  padding: 20px;
  color: #e8edf5;
  background: rgba(15, 19, 31, 0.82);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.tob-phase-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(171, 130, 216, 0.56);
}

.tob-phase-nav a:focus-visible {
  outline: 3px solid var(--tob-purple-bright);
  outline-offset: 4px;
}

.tob-phase-nav span {
  color: var(--tob-purple-bright);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tob-phase-nav strong {
  margin-top: 9px;
  font-size: 17px;
  line-height: 1.35;
}

.tob-phase-nav small {
  margin-top: 10px;
  color: #9ca8bb;
  font-size: 13px;
  line-height: 1.55;
}

.tob-phase,
.tob-hard-mode {
  position: relative;
  border: 1px solid var(--tob-border);
  border-radius: 15px;
  padding: clamp(22px, 4vw, 36px);
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(171, 130, 216, 0.1), transparent 24rem),
    rgba(12, 15, 26, 0.84);
}

.tob-phase::before,
.tob-hard-mode::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--tob-purple), var(--tob-red), var(--tob-gold));
}

.tob-phase__heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.tob-phase__heading > span {
  display: grid;
  min-height: 68px;
  place-items: center;
  border: 1px solid rgba(171, 130, 216, 0.42);
  border-radius: 10px;
  color: #e8d8f7;
  background: rgba(79, 48, 109, 0.28);
  font-size: 12px;
  font-weight: 900;
}

.tob-phase__heading .kicker,
.tob-phase__heading h2 {
  margin-left: 0;
}

.tob-phase-one-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(380px, 1.2fr);
  align-items: start;
  gap: 24px;
  margin-top: 26px;
}

.tob-sequence {
  gap: 8px;
}

.tob-sequence li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 0 10px;
  counter-increment: tob-step;
}

.tob-sequence li::before {
  display: grid;
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(171, 130, 216, 0.42);
  border-radius: 999px;
  content: counter(tob-step);
  color: #e8d8f7;
  font-size: 11px;
  font-weight: 850;
}

.tob-sequence strong {
  font-size: 14px;
  line-height: 1.45;
}

.tob-sequence span {
  color: #99a5b8;
  font-size: 12.5px;
  line-height: 1.55;
}

.tob-safe-tiles {
  border: 1px solid rgba(216, 174, 85, 0.3);
  border-radius: 10px;
  padding: 9px;
  background: #05070c;
}

.tob-safe-tiles a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
}

.tob-safe-tiles img {
  width: 100%;
}

.tob-mechanic-grid,
.tob-crab-grid,
.tob-special-grid,
.tob-hard-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.tob-mechanic-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tob-mechanic-grid article,
.tob-special-grid article,
.tob-hard-grid article {
  border: 1px solid rgba(171, 130, 216, 0.18);
  border-radius: 10px;
  padding: 20px;
  background: rgba(18, 21, 34, 0.72);
}

.tob-mechanic-grid p,
.tob-crab-grid p,
.tob-special-grid p,
.tob-hard-grid p {
  font-size: 14px;
  line-height: 1.65;
}

.tob-subheading {
  margin-top: 28px !important;
}

.tob-crab-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tob-crab {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  overflow: hidden;
  background: rgba(18, 21, 34, 0.76);
}

.tob-crab::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: var(--crab-accent);
}

.tob-crab > span,
.tob-special-grid article > span,
.tob-hard-grid article > span {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--crab-accent, var(--tob-purple-bright));
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tob-crab--red {
  --crab-accent: #e97b81;
}

.tob-crab--purple {
  --crab-accent: #b68ae7;
}

.tob-crab--neutral {
  --crab-accent: #a5b2c5;
}

.tob-special-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tob-special-grid article:nth-child(2) {
  border-color: rgba(216, 174, 85, 0.3);
}

.tob-special-grid article:nth-child(2) > span {
  color: #f0cf82;
}

.tob-special-grid article:nth-child(3) {
  border-color: rgba(101, 187, 126, 0.3);
}

.tob-special-grid article:nth-child(3) > span {
  color: #89d69e;
}

.tob-special-grid article:nth-child(4) {
  border-color: rgba(210, 103, 108, 0.3);
}

.tob-special-grid article:nth-child(4) > span {
  color: #ee888e;
}

.tob-priority {
  margin-top: 24px;
  border: 1px solid rgba(216, 174, 85, 0.28);
  border-radius: 10px;
  padding: 22px;
  background: rgba(61, 46, 24, 0.16);
}

.tob-priority ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.tob-priority li {
  font-size: 14px;
  line-height: 1.6;
}

.tob-hard-mode {
  border-color: rgba(210, 103, 108, 0.32);
  background:
    radial-gradient(circle at 100% 0, rgba(210, 103, 108, 0.12), transparent 24rem),
    rgba(19, 14, 23, 0.88);
}

.tob-hard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tob-hard-grid article {
  border-color: rgba(210, 103, 108, 0.2);
  background: rgba(37, 21, 29, 0.58);
}

.tob-hard-grid article > span {
  color: var(--tob-red-bright);
}

.tob-mistakes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tob-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.tob-checklist > div {
  position: relative;
  min-height: 58px;
  border: 1px solid rgba(171, 130, 216, 0.18);
  border-radius: 8px;
  padding: 15px 15px 15px 42px;
  color: #b7c0d1;
  background: rgba(17, 20, 32, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.tob-checklist > div::before {
  position: absolute;
  top: 17px;
  left: 16px;
  color: #aeddba;
  content: "✓";
  font-weight: 900;
}

.tob-guide .guide-final-cta {
  border: 1px solid rgba(216, 174, 85, 0.28);
  border-radius: 12px;
  padding: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(216, 174, 85, 0.11), transparent 19rem),
    rgba(17, 19, 29, 0.78);
}

.tob-guide .guide-sources-compact {
  border-color: rgba(171, 130, 216, 0.2);
}

.tob-guide .guide-sources-compact summary:focus-visible {
  outline-color: var(--tob-purple-bright);
}

.tob-guide .guide-sources-compact__content a {
  color: #caa7ee;
}

@media (max-width: 1100px) {
  .tob-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 26px 32px;
  }

  .tob-hero__figure {
    min-height: 380px;
  }

  .tob-hero__figure img {
    height: 350px;
  }

  .tob-prep-grid,
  .tob-crab-grid,
  .tob-hard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .tob-guide .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    max-width: 900px;
  }

  .tob-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 800px;
  }

  .tob-hero__copy {
    text-align: center;
  }

  .tob-guide .tob-hero .guide-article-hero__logo {
    margin-inline: auto;
  }

  .tob-hero .hero__lead {
    margin-inline: auto;
  }

  .tob-hero__links {
    justify-content: center;
  }

  .tob-hero__figure {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .tob-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .tob-access,
  .tob-phase-one-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tob-setup-grid,
  .tob-phase-nav,
  .tob-mechanic-grid--two,
  .tob-special-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tob-phase-nav a {
    min-height: 0;
  }

  .tob-mistakes,
  .tob-checklist,
  .tob-priority ol {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .tob-hero {
    padding: 38px 0 42px;
  }

  .tob-hero h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .tob-hero__figure {
    min-height: 330px;
    border-radius: 14px;
  }

  .tob-hero__figure img {
    height: 300px;
  }

  .tob-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .tob-setup-card {
    padding: 12px;
  }

  .tob-setup-card dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .tob-phase,
  .tob-hard-mode {
    padding: 22px 16px;
  }

  .tob-phase__heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .tob-phase__heading > span {
    min-height: 42px;
    width: 72px;
  }

  .tob-safe-tiles {
    margin-inline: -5px;
  }

  .tob-guide .guide-final-cta {
    padding: 24px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tob-guide *,
  .tob-guide *::before,
  .tob-guide *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
