/* Guides and home copy. Game screens keep the layout in style.css. */

#screen-start > .seo-home {
  width: min(1050px, 100%);
  margin: 12px 0 18px;
  display: grid;
  gap: 10px;
  flex-shrink: 0;
  text-align: left;
  user-select: text;
  -webkit-user-select: text;
}
#screen-start h1.seo-headline {
  font-family: "Baloo 2", "PingFang SC", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 2px 0 6px;
  color: #8a4a72;
}
#screen-start .crawl-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: center;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
}
#screen-start .crawl-nav a,
#screen-start .seo-home a {
  color: #9b1b4d;
  font-weight: 800;
  text-underline-offset: 2px;
}
#screen-start .seo-block {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 rgba(71, 32, 60, .9);
  padding: 12px 14px 10px;
}
#screen-start .seo-block h2 {
  font-family: "Baloo 2", "PingFang SC", sans-serif;
  font-size: 18px;
  letter-spacing: 0;
  margin: 0 0 6px;
}
#screen-start .seo-block h3 {
  font-size: 14px;
  margin: 10px 0 2px;
}
#screen-start .seo-block p,
#screen-start .seo-block li {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px;
  color: #5c304c;
}
#screen-start .seo-block ul {
  margin: 0;
  padding-left: 1.15em;
}
#screen-start .seo-actions { margin: 4px 0 0; }

@media (max-width: 700px) {
  #screen-start > .seo-home { margin-top: 8px; gap: 8px; }
  #screen-start h1.seo-headline { font-size: 14px; margin: 0 0 4px; }
  #screen-start .crawl-nav { font-size: 12px; gap: 4px 8px; margin-top: 8px; }
  #screen-start .seo-block { padding: 10px 12px 8px; border-radius: 18px; }
  #screen-start .seo-block h2 { font-size: 16px; }
  #screen-start .seo-block p,
  #screen-start .seo-block li { font-size: 13px; }
}

html:has(body.seo-page) {
  height: auto;
  overflow: auto;
}
body.seo-page {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  user-select: text;
  -webkit-user-select: text;
}
.seo-wrap {
  width: min(760px, calc(100% - 20px));
  margin: 14px auto 28px;
  position: relative;
  z-index: 1;
}
.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 5;
}
.skip:focus { top: 8px; }
.seo-top, .seo-foot, .seo-sheet {
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 8px 0 rgba(71, 32, 60, .9);
}
.seo-top, .seo-foot { padding: 12px 14px; margin-bottom: 12px; }
.seo-brand {
  display: inline-block;
  margin-bottom: 8px;
  font-family: "ZCOOL KuaiLe", "Baloo 2", sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-decoration: none;
}
.seo-nav ul, .seo-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 800;
}
.seo-page a { color: #9b1b4d; font-weight: 800; text-underline-offset: 2px; }
.seo-page a:focus-visible,
.seo-page button:focus-visible,
#screen-start a:focus-visible,
#screen-start button[data-analytics-settings]:focus-visible {
  outline: 3px solid #ffd32a;
  outline-offset: 2px;
}
.seo-page a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.seo-sheet { padding: 18px 16px 20px; }
.seo-sheet h1 {
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 8px;
}
.seo-sheet h2 {
  font-family: "Baloo 2", "PingFang SC", sans-serif;
  font-size: 22px;
  letter-spacing: 0;
  margin: 20px 0 8px;
}
.seo-sheet h3 { font-size: 16px; margin: 14px 0 4px; }
.seo-sheet p, .seo-sheet li {
  font-weight: 700;
  line-height: 1.5;
  color: #5c304c;
}
.seo-sheet ul, .seo-sheet ol { margin: 0 0 12px; padding-left: 1.2em; }
.lede { font-size: 17px; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
}
.crumbs li:not(:last-child)::after {
  content: " / ";
  color: #8a4a72;
  font-weight: 800;
}
.look-shot { margin: 0 0 14px; }
.look-shot img {
  width: min(280px, 100%);
  height: auto;
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink);
  background: #f0d9e4;
}
.look-shot figcaption { font-size: 13px; font-weight: 800; margin-top: 6px; }
.swatch-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.swatch-list li { display: flex; align-items: center; gap: 8px; margin: 0; }
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  flex: 0 0 auto;
}
.seo-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 700;
  color: var(--ink);
}
.seo-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.seo-page a.btn { text-decoration: none; display: inline-block; text-align: center; color: inherit; }
.seo-page a.btn.primary { color: #fff; }
.seo-page .btn.big { white-space: normal; max-width: 100%; }
.seo-foot { margin: 12px 0 0; }
.seo-foot p { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: #5c304c; }

@media (max-width: 700px) {
  .seo-wrap { width: min(760px, calc(100% - 12px)); margin-top: 8px; }
  .seo-top, .seo-foot, .seo-sheet { border-radius: 20px; }
  .seo-sheet { padding: 14px 12px 16px; }
  .seo-sheet h2 { font-size: 18px; }
  .lede { font-size: 15px; }
  .look-shot img { width: min(220px, 72%); }
  .seo-nav ul, .seo-foot nav { font-size: 13px; }
}
