/* Website shell around the dashboard pages (lib/*.css draws the pages themselves, as in the app):
   the app's menu on the left with 다운로드 marked, and the download button at its foot. On narrow
   screens the menu is a bar across the top. The front page (/, .dl) is styled at the end. */
body {
  margin: 0;
  padding-left: 216px;
  background: var(--bg);
  color: var(--text);
}
.side {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  width: 216px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 16px;
  background: var(--n-50);
  border-right: 1px solid var(--n-200);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 16px;
  color: var(--text);
  text-decoration: none;
}
.brand b {
  font-size: 19px;
  font-weight: 800;
}
/* The app's stylesheets draw a bare <nav> with padding and a border; this one is the menu. */
.side nav.menu {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  border: 0;
  scrollbar-width: thin;
}
.menu a {
  display: block;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
}
.menu a:hover {
  background: var(--n-200);
  color: var(--text);
}
.menu a b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}
.menu a small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--n-500);
}
.menu a[aria-current='page'] {
  background: var(--n-200);
  border-left-color: var(--blue);
  color: #fff;
}
.menu a[aria-current='page'] small {
  color: var(--muted);
}
/* 다운로드 stands out on every page: green, with its own tint, a gap under it. */
.menu a.nav-get {
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.menu a.nav-get small {
  color: color-mix(in srgb, var(--accent) 70%, var(--muted));
}
.menu a.nav-get:hover,
.menu a.nav-get[aria-current='page'] {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border-left-color: var(--accent);
  color: var(--accent);
}
.side-foot {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--n-200);
}
.side-get,
.dl-button {
  display: block;
  border-radius: 7px;
  background: var(--accent);
  color: var(--brand-ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.side-get {
  padding: 10px 8px;
  font-size: 14px;
  line-height: 1.3;
}
.side-get small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: inherit;
  opacity: 0.7;
}
.side-get:hover,
.dl-button:hover {
  filter: brightness(1.08);
}
.side-meta {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 11.5px;
}
.side-meta a {
  color: var(--muted);
  text-decoration: none;
}
.side-meta a:hover {
  color: var(--text);
  text-decoration: underline;
}
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
main {
  padding-top: 24px;
  padding-bottom: 40px;
}
/* Sticky parts of the pages stick to the top of the window here. */
.sg-toc,
.op-heroes .op-list {
  top: 16px;
}
.sg-toc {
  max-height: calc(100vh - 32px);
}
.sg-sec {
  scroll-margin-top: 16px;
}
/* Ad (RevIQ 300x250, the same slot as the app's ad column): under the page on narrow screens, a
   column on the right on wide ones. The house card shows until RevIQ fills #ad. */
.ad-side {
  width: 300px;
  margin: 0 auto 32px;
}
.ad-side small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.ad-slot {
  position: relative;
  width: 300px;
  height: 250px;
}
.ad-house {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  box-sizing: border-box;
  border: 1px dashed var(--n-500);
  border-radius: 6px;
  background: var(--n-100);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}
.ad-house span {
  color: var(--muted);
}
.ad-house em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}
#ad {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 250px;
}
@media (min-width: 1760px) {
  body {
    padding-right: 332px;
  }
  .ad-side {
    position: fixed;
    top: 16px;
    right: 16px;
    margin: 0;
  }
}
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
footer a {
  color: var(--muted);
}

/* Narrow screens: the menu becomes a bar across the top (logo and download button, then the pages
   as a row that scrolls sideways). */
@media (max-width: 900px) {
  body {
    padding-left: 0;
  }
  .side {
    position: sticky;
    bottom: auto;
    width: auto;
    flex-flow: row wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--n-200);
  }
  .brand {
    flex: 1;
    padding: 0;
  }
  .side-foot {
    padding: 0;
    border: 0;
  }
  .side-get {
    padding: 7px 12px;
    font-size: 13px;
  }
  .side-get small,
  .side-meta {
    display: none;
  }
  .side nav.menu {
    order: 3;
    flex: 1 0 100%;
    flex-direction: row;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 12px 6px;
    scrollbar-width: none;
  }
  .menu a {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 4px 4px 0 0;
  }
  .menu a b {
    font-size: 14px;
  }
  .menu a small {
    display: none;
  }
  .menu a[aria-current='page'],
  .menu a.nav-get[aria-current='page'] {
    border-bottom-color: var(--blue);
  }
  .menu a.nav-get {
    margin: 0 6px 0 0;
  }
  .menu a.nav-get[aria-current='page'] {
    border-bottom-color: var(--accent);
  }
  .op-heroes .op-list {
    top: 0;
  }
  /* The 목차 chip row sticks under the two-row menu bar; sections stop below both. */
  .sg-toc {
    top: 92px;
  }
  .sg-sec {
    scroll-margin-top: 150px;
  }
  .sg-layout {
    scroll-margin-top: 104px;
  }
}
@media (max-width: 760px) {
  .card {
    padding: 16px;
  }
  /* 영웅: the hero header's numbers and ability icons wrap instead of running off the screen. */
  .op-stats,
  .op-skill-icons {
    flex-wrap: wrap;
  }
  /* Wide tables scroll inside their card instead of widening the page. */
  .sg-table {
    display: block;
    overflow-x: auto;
  }
}

/* The front page (/): what Lookout is, the download, how to start, then the pages for the browser. */
.dl {
  max-width: 1080px;
}
.dl a {
  color: var(--accent);
}
.dl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel) 60%);
}
.dl-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.dl-hero h1 {
  margin: 6px 0 12px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.3;
}
.dl-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 560px;
}
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 24px;
}
.dl .dl-button {
  padding: 15px 28px;
  font-size: 17px;
  color: var(--brand-ink);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 30%, transparent);
}
.dl-meta {
  color: var(--muted);
  font-size: 13px;
}
.dl-meta b {
  color: var(--text);
}
.dl-hero .dl-req {
  margin-top: 12px;
  font-size: 13px;
}
.dl-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
/* 경기 중에 보이는 것: the left panel close up, then Tab and hero select (16:9) a bit wider. */
.dl-gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.dl-gallery figure {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--panel);
}
.dl-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.dl-gallery figcaption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.dl-gallery figcaption b {
  display: block;
  color: var(--text);
  font-size: 15px;
}
.dl-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.dl-steps div {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  background: var(--panel);
}
.dl-steps b {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--n-300);
  color: var(--accent);
  font-weight: 800;
  text-align: center;
  line-height: 28px;
}
.dl-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}
.dl-steps strong {
  display: block;
  color: var(--text);
  font-size: 14.5px;
}
.dl-h {
  margin: 36px 0 12px;
  font-size: 19px;
}
.dl-features {
  margin-top: 12px;
}
.dl-features figure {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: var(--panel);
}
.dl-features img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.dl-features figcaption,
.dl-more p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.dl-features figcaption b,
.dl-more > b {
  display: block;
  color: var(--text);
  font-size: 15px;
}
.dl-more {
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--panel);
}
.dl-more ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
}
.dl-more li + li {
  margin-top: 4px;
}
.dl-more b + p + b {
  margin-top: 16px;
}
.dl-pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.dl-pages a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}
.dl-pages a:hover {
  border-color: var(--blue);
}
.dl-pages b {
  display: block;
  color: var(--text);
  font-size: 15px;
}
.dl-pages span {
  color: var(--muted);
  font-size: 12.5px;
}
.dl-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .dl-hero {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .dl .dl-button {
    width: 100%;
    box-sizing: border-box;
  }
  .dl-steps,
  .dl-gallery {
    grid-template-columns: 1fr;
  }
  .dl-gallery figure:first-child img {
    max-width: 320px;
  }
}
