/* Snake's own layout on top of the company shell (assets/icl.css). Colours come only from the shell's variables and
   the palette in theme.css. No web font, no image from another site, no inline style anywhere. */

/* Menu for narrow screens: the shell hides the app bar's links below 40rem, so a native <details> carries them. */
.sk-menu { position: relative; }
.sk-menu summary { cursor: pointer; list-style: none; min-height: 2.75rem; display: inline-flex; align-items: center; padding-inline: var(--icl-space-3); font-weight: 650; border: 1px solid var(--icl-border); border-radius: 999px; }
.sk-menu summary::-webkit-details-marker { display: none; }
.sk-menu ul { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 12rem; margin: var(--icl-space-2) 0 0; padding: var(--icl-space-2); list-style: none; background: var(--icl-surface); border: 1px solid var(--icl-border); border-radius: var(--icl-radius-m); }
.sk-menu li a { display: block; padding: var(--icl-space-3); color: var(--icl-fg); text-decoration: none; font-weight: 560; }
.sk-menu li a:hover, .sk-menu li a[aria-current] { text-decoration: underline; }
@media (min-width: 40rem) { .sk-menu { display: none; } }

/* Hero */
.sk-chip { display: inline-block; padding: 0.125rem var(--icl-space-3); border: 1px solid currentColor; border-radius: 999px; font-size: var(--icl-step--1); font-weight: 650; }
.sk-get { display: inline-block; padding: var(--icl-space-3) var(--icl-space-5); border: 2px solid currentColor; border-radius: 999px; font-weight: 680; }
.icl-hero--app a { color: var(--app-on-gradient); }
.icl-hero--app .icl-button { background: var(--app-on-gradient); color: var(--app-gradient-from); border-color: var(--app-on-gradient); }
.icl-hero--app h1 { max-width: 18ch; font-size: var(--icl-step-4); }
.icl-hero--app .icl-lead { max-width: 46ch; }

/* Pages that are not the home page start with a plain heading */
.sk-head { padding-block: clamp(var(--icl-space-6), 6vw, var(--icl-space-8)) var(--icl-space-5); }
.sk-head h1 { font-size: var(--icl-step-4); max-width: 22ch; }
.sk-head .icl-lead { max-width: 52ch; }

/* Three facts, steps */
.sk-facts { display: grid; gap: var(--icl-space-4); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.sk-facts li { padding: var(--icl-space-4) var(--icl-space-5); background: var(--icl-surface-2); border: 1px solid var(--icl-border); border-radius: var(--icl-radius-m); }
.sk-facts h3 { margin-bottom: var(--icl-space-1); }
.sk-facts p { margin: 0; color: var(--icl-fg-muted); }
.sk-steps { display: grid; gap: var(--icl-space-5); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.sk-steps li { counter-increment: step; }
.sk-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: var(--icl-space-3); border-radius: 50%; background: var(--app-primary); color: var(--app-on-primary); font-weight: 750; }
.sk-steps p { margin: 0; color: var(--icl-fg-muted); }

/* Feature rows with a phone picture. The picture sits in a frame of the shell's (.icl-device). */
.sk-row { display: grid; gap: var(--icl-space-6); align-items: center; padding-block: var(--icl-space-6); }
.sk-row p { color: var(--icl-fg-muted); max-width: 50ch; }
.sk-row .icl-device { width: min(100%, 14rem); }
@media (min-width: 52rem) {
  .sk-row { grid-template-columns: 1fr 1fr; gap: var(--icl-space-8); }
  .sk-row--flip .icl-device { order: -1; }
}
.sk-two { display: grid; gap: var(--icl-space-7); }
@media (min-width: 52rem) { .sk-two { grid-template-columns: 1fr 1fr; } }
.sk-two p { max-width: 50ch; }
.sk-cards { display: grid; gap: var(--icl-space-4); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.sk-cards li { padding: var(--icl-space-4) var(--icl-space-5); border: 1px solid var(--icl-border); border-radius: var(--icl-radius-m); }
.sk-cards a { font-weight: 650; }
.sk-cards p { margin: var(--icl-space-1) 0 0; color: var(--icl-fg-muted); font-size: var(--icl-step--1); }

/* Text pages */
.sk-text { width: min(100% - 2 * var(--icl-gutter), 46rem); margin-inline: max(var(--icl-gutter), calc((100% - var(--icl-wide)) / 2)) auto; padding-bottom: var(--icl-space-8); }
.sk-text h2 { font-size: var(--icl-step-2); margin-top: var(--icl-space-7); }
.sk-text h3 { margin-top: var(--icl-space-5); }
.sk-text ul, .sk-text ol { padding-left: 1.25rem; }
.sk-text li { margin-bottom: var(--icl-space-2); }
.sk-log { margin: var(--icl-space-4) 0; padding: var(--icl-space-4) var(--icl-space-5); background: var(--icl-surface-2); border: 1px solid var(--icl-border); border-radius: var(--icl-radius-s); overflow-x: auto; font-family: var(--icl-font-mono); font-size: var(--icl-step--1); }
.sk-qa dt { font-weight: 680; margin-top: var(--icl-space-5); }
.sk-qa dd { margin: var(--icl-space-1) 0 0; color: var(--icl-fg-muted); }
.sk-icon { display: block; width: 8rem; height: 8rem; border-radius: 1.75rem; margin-block: var(--icl-space-4); }

/* Markdown pages inside .icl-prose (Privacy, Support) */
.icl-prose table { border-collapse: collapse; }
.icl-prose th, .icl-prose td { border: 1px solid var(--icl-border); padding: var(--icl-space-2) var(--icl-space-3); text-align: left; }
.icl-prose ul, .icl-prose ol { padding-left: 1.25rem; }
.icl-prose li { margin-bottom: var(--icl-space-2); }

/* The row of links above the company footer */
.sk-more { padding-block: var(--icl-space-6); border-top: 1px solid var(--icl-border); font-size: var(--icl-step--1); }
.sk-more p { margin: 0 0 var(--icl-space-3); color: var(--icl-fg-muted); }
.sk-more ul { display: flex; flex-wrap: wrap; gap: var(--icl-space-1) var(--icl-space-5); margin: 0; padding: 0; list-style: none; }
.sk-more a { display: inline-block; padding: var(--icl-space-2) 0; }

/* Keep the FAQ and body text on the left edge of the page, with a readable line length */
.icl-section .icl-faq { margin-inline: 0; }
.icl-section > .icl-wrap > p { max-width: var(--icl-measure); }
.sk-row > div { min-width: 0; }

/* The ghost button on the hero: an outline in the hero's text colour */
.icl-hero--app .icl-button--ghost { background: transparent; color: var(--app-on-gradient); border-color: var(--app-on-gradient); }
.sk-cards .sk-get { display: inline-block; }

/* ---- The look of the game: hard edges and hard drop shadows, as in the game's own screens (docs/design). No colour of
   its own is written here: every colour is one of the shell's variables or the eight roles of theme.css. ---- */

/* Hero buttons sit on a hard shadow, like the game's buttons, and press down. */
.icl-hero--app .icl-button { box-shadow: 0 0.25rem 0 var(--app-accent); }
.icl-hero--app .icl-button:hover { background: var(--app-on-gradient); border-color: var(--app-on-gradient); transform: translateY(-1px); }
.icl-hero--app .icl-button:active { transform: translateY(0.25rem); box-shadow: 0 0 0 var(--app-accent); }
.icl-hero--app .icl-button--ghost { box-shadow: none; }
.icl-hero--app .icl-button--ghost:hover { background: transparent; transform: none; text-decoration: underline; }

/* Hero: the words on the left, the pictures on the right. Wider than the shell's grid, so the pictures have room. */
@media (min-width: 52rem) { .icl-hero--app .icl-hero__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.icl-hero--app .icl-hero__grid > div { min-width: 0; }

/* The platforms, in the hero: one line each, with what is true of it. */
.sk-platforms { display: grid; gap: var(--icl-space-2); max-width: 34rem; margin: var(--icl-space-5) 0 0; padding: 0; list-style: none; }
.sk-platforms li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--icl-space-3); padding: var(--icl-space-2) var(--icl-space-4); border: 2px solid currentColor; border-radius: var(--icl-radius-s); }
.sk-platforms strong { font-weight: 720; }
.sk-platforms span { font-size: var(--icl-step--1); }
.icl-hero--app .icl-hero__meta { max-width: 46ch; }

/* A computer window around a picture of the game. The bar is a plain frame with three dots. */
.sk-window { --sk-edge: var(--icl-fg); margin: 0; background: var(--sk-edge); border: 3px solid var(--sk-edge); border-radius: var(--icl-radius-s); box-shadow: 0.5rem 0.5rem 0 var(--app-primary); overflow: hidden; }
.sk-window::before { content: ""; display: block; width: 0.5rem; height: 0.5rem; margin: 0.4rem 0 0.4rem 0.6rem; border-radius: 50%; background: var(--icl-surface); box-shadow: 0.85rem 0 0 var(--icl-surface), 1.7rem 0 0 var(--icl-surface); opacity: 0.8; }
.sk-window img { display: block; width: 100%; height: auto; }
.icl-hero--app .sk-window { --sk-edge: var(--app-on-gradient); box-shadow: 0.5rem 0.5rem 0 var(--app-accent); }
.icl-hero--app .sk-window::before { background: var(--app-gradient-from); box-shadow: 0.85rem 0 0 var(--app-gradient-from), 1.7rem 0 0 var(--app-gradient-from); }

/* The pictures of the hero: the computer window, with a phone in front of it at the bottom right. */
.sk-shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; padding-bottom: var(--icl-space-5); }
.sk-shots .sk-window { grid-column: 1 / 11; grid-row: 1; align-self: center; }
.sk-shots .icl-device { grid-column: 9 / 13; grid-row: 1; width: 100%; box-sizing: border-box; }
@media (min-width: 52rem) { .sk-shots .icl-device { grid-column: 10 / 13; transform: translateY(var(--icl-space-5)); } }

/* The gallery: pictures with their captions */
.sk-gallery { display: grid; gap: var(--icl-space-7) var(--icl-space-6); align-items: start; margin-top: var(--icl-space-4); }
.sk-gallery figure { margin: 0; }
.sk-gallery figcaption, .sk-caption { margin-top: var(--icl-space-3); color: var(--icl-fg-muted); font-size: var(--icl-step--1); }
.sk-gallery--computer { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.sk-gallery--phone { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.sk-gallery--phone .icl-device { width: min(100%, 14rem); }
.sk-gallery h3 { margin-bottom: 0; }
.sk-gallery__title { margin: var(--icl-space-6) 0 0; }
.sk-gallery--phone figure { justify-self: center; }
.sk-gallery--phone figcaption { max-width: 14rem; }
.sk-note { max-width: var(--icl-measure); }

/* Where to play */
.sk-platform-cards { display: grid; gap: var(--icl-space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin: var(--icl-space-5) 0; padding: 0; list-style: none; }
.sk-platform-cards li { display: flex; flex-direction: column; align-items: flex-start; padding: var(--icl-space-5); background: var(--icl-surface); border: 2px solid var(--app-primary); border-radius: var(--icl-radius-s); box-shadow: 0.25rem 0.25rem 0 var(--app-primary); }
.sk-platform-cards h3 { margin-bottom: var(--icl-space-2); }
.sk-platform-cards p { color: var(--icl-fg-muted); }
.sk-platform-cards .sk-state { margin: 0 0 var(--icl-space-3); padding: 0.125rem var(--icl-space-3); background: var(--app-primary); color: var(--app-on-primary); border-radius: 999px; font-size: var(--icl-step--1); font-weight: 700; }
.sk-platform-cards .icl-button, .sk-platform-cards .sk-get { margin-top: auto; }

/* Cards and facts take the same hard edge */
.sk-cards li, .sk-facts li { border: 2px solid var(--app-primary); border-radius: var(--icl-radius-s); box-shadow: 0.25rem 0.25rem 0 var(--app-primary); }

/* Plain headings get a short bar in the accent colour, as the shell's section headings do */
.sk-head h1::after, .icl-prose h1::after { content: ""; display: block; width: 4rem; height: 0.4rem; margin-top: var(--icl-space-4); background: var(--app-accent); }

/* Pictures on text pages */
.sk-text .sk-window { margin-block: var(--icl-space-5); }
.sk-text .icl-device { width: min(100%, 13rem); margin-block: var(--icl-space-5); justify-self: auto; }
.sk-text figure.icl-device { margin-inline: auto; }
.sk-text img.sk-shot { display: block; max-width: 100%; height: auto; }
.sk-text .sk-caption { margin-top: calc(-1 * var(--icl-space-3)); }

/* The mode and feature lists are cards with the same hard edge */
.icl-points { gap: var(--icl-space-5); }
.icl-points li { padding: var(--icl-space-4) var(--icl-space-5); background: var(--icl-surface); border: 2px solid var(--app-primary); border-radius: var(--icl-radius-s); box-shadow: 0.25rem 0.25rem 0 var(--app-primary); }
.icl-section--tint .icl-points li { background: var(--icl-surface); }

/* The FAQ's questions and answers (a definition list inside .icl-prose) */
.icl-prose dt { margin-top: var(--icl-space-5); font-weight: 680; }
.icl-prose dd { margin: var(--icl-space-1) 0 0; padding-left: var(--icl-space-4); border-left: 4px solid var(--app-accent); color: var(--icl-fg-muted); }
.icl-points + p, .sk-platform-cards + p { margin-top: var(--icl-space-5); }
