/* The download guide uses the same canvas and player as the play page. */
body.download-page {
  --download-edge: max(40px, calc((100vw - 1360px) / 2));
  --download-bg: #091b16;
  --download-text: #e9edda;
  --download-muted: #aebfb0;
  --download-accent: #d5fd72;
  --download-line: #cfe7b326;
  margin: 0;
  padding: 0;
  background: var(--download-bg);
  color: var(--download-text);
  font: 16px Manrope, system-ui, sans-serif;
}
.download-page :where(a, button, summary):focus-visible { outline: 2px solid var(--download-accent); outline-offset: 4px; }
.download-page header.floating-game-header { inset-inline: var(--download-edge); max-width: 1360px; }
.download-main { width: 100%; }
.download-main :where(h1, h2, h3, p, dd) { overflow-wrap: break-word; }
.download-main :where(section[id]) { scroll-margin-top: 92px; }

.download-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 29vw, 400px);
  align-items: center;
  gap: clamp(56px, 7vw, 112px);
  padding: 128px var(--download-edge) 76px;
}
.download-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(100%, 680px);
  background: linear-gradient(180deg, #091b1655 0%, #091b169c 38%, #091b16 100%), url('/assets/landscape.png') center 35% / cover no-repeat;
  pointer-events: none;
}
.download-hero-copy { min-width: 0; max-width: 740px; }
.download-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #c5d2bd;
  font-size: 12px;
  line-height: 1.5;
}
.download-breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.download-breadcrumb a:hover { color: var(--download-accent); }
.download-kicker {
  display: block;
  margin: 0;
  color: #b9ce9c;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: .15em;
}
.download-kicker b { margin-right: 4px; color: var(--download-accent); }
.download-hero .download-kicker { padding-bottom: 18px; border-bottom: 1px solid var(--download-line); }
.download-hero h1 {
  margin: 23px 0 20px;
  color: var(--download-text);
  font: 400 clamp(42px, 4vw, 58px) / 1.08 "Russo One", sans-serif;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: none;
}
.download-lead { max-width: 61ch; margin: 0; color: #cfdbcd; font-size: 17px; line-height: 1.8; }
.download-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 25px; margin-top: 25px; }
.download-button, .download-partner-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  max-width: 100%;
  padding: 12px 20px;
  border: 1px solid #e1ffa0;
  border-radius: 8px;
  background: var(--download-accent);
  box-shadow: inset 0 1px #ffffff70, 0 5px 18px #0003;
  color: #1a2d0b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  transition: background .18s, transform .18s;
}
.download-button svg, .download-partner-button svg { flex: none; width: 18px; height: 18px; fill: currentColor; }
.download-button:hover { background: #e4ffa2; transform: translateY(-2px); }
.download-guide-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #dceacb; font-size: 13px; font-weight: 800; }
.download-guide-link svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.download-guide-link:hover { color: var(--download-accent); }
.download-demo-note { margin: 12px 0 0; color: var(--download-muted); font-size: 12px; line-height: 1.6; }

.download-player-host {
  position: relative;
  display: block;
  justify-self: end;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}
.download-player-host .campaign-player { width: 100%; max-width: none; }
.download-player-host .download-player-cta {
  display: flex;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin: 8px 0 0;
  border: 1px solid #e1ffa0;
  border-radius: 7px;
  background: var(--download-accent);
  box-shadow: inset 0 1px #ffffff70;
  color: #1a2d0b;
  font: 800 13px/1.3 Manrope, sans-serif;
}
.download-player-host .download-player-cta:hover { background: #e4ffa2; }
.download-player-host .download-player-cta svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }

/* Download-only 1win campaign, matching the established English Kirka player. */
.download-page #stage.game-stage > .download-onewin-player-promo {
  border-color: #66c8ff;
  background: linear-gradient(118deg, #0029d9 0 45%, #006bea 45% 70%, #00a3ff 70% 100%);
  box-shadow: 0 8px 28px #00145f99, 0 0 0 1px #000;
  color: #fff;
}
.download-page .download-onewin-player-promo .joy-brand img { width: min(100%, 116px); max-height: 38px; filter: none; }
.download-page .download-onewin-player-promo .joy-offer b { color: #fff; text-shadow: 0 2px 10px #00145f; }
.download-page .download-onewin-player-promo .joy-caption { color: #eaf7ff; }
.download-page .download-onewin-player-promo .joy-action {
  border-color: #fff;
  border-bottom-color: #dcecff;
  background: #fff;
  box-shadow: 0 8px 20px #001b8c66, inset 0 -3px #dcecff;
  color: #0029d9;
}
.download-page .download-onewin-player-promo .joy-action:hover { background: #fff; filter: brightness(1.05); }

.download-page .igp-player {
  --igp-accent: #00a3ff;
  --igp-promo-accent: #00a3ff;
  --igp-promo-start: #0029d9;
  --igp-promo-mid: #064ee5;
  --igp-promo-end: #00a3ff;
  --igp-promo-outline: #000;
  --igp-promo-glow: #00a3ff45;
  --igp-code-text: #fff;
  --igp-code-start: #0029d9;
  --igp-code-end: #064ee5;
  --igp-code-shadow: #001c8d55;
  --igp-action-text: #0029d9;
  --igp-action-start: #fff;
  --igp-action-end: #fff;
  --igp-action-inset: #dcecff;
  --igp-action-circle: #0029d9;
  --igp-action-shadow: #001b8c66;
  --igp-action-hover-shadow: #001b8c80;
  --igp-action-circle-shadow: #00176c66;
}
.download-page .igp-player--chrome .igp-promo {
  border-top-color: #66c8ff;
  background: linear-gradient(118deg, #0029d9 0 45%, #006bea 45% 70%, #00a3ff 70% 100%);
  box-shadow: 0 -1px 0 #ffffff30, 0 -14px 38px #00145f70;
}
.download-page .igp-player--chrome .igp-promo-brand img { width: min(100%, 116px); max-height: 50px; filter: none; }
.download-page .igp-player--chrome .igp-promo-action {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 9px 24px #001b8c66, inset 0 -3px #dcecff;
  color: #0029d9;
}
.download-page .igp-player--chrome .igp-promo-action > b { background: #0029d9; box-shadow: none; }

/* Text sections keep a shared baseline and use rules, not repeated boxes. */
.download-section {
  position: relative;
  margin: 0 var(--download-edge);
  padding: 64px 0;
  border-top: 1px solid var(--download-line);
}
.download-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); align-items: start; gap: clamp(36px, 6vw, 96px); }
.download-section-heading { margin-bottom: 28px; }
.download-split .download-section-heading { margin-bottom: 0; }
.download-section h2 {
  max-width: 850px;
  margin: 13px 0 0;
  color: var(--download-text);
  font: 400 clamp(29px, 2.7vw, 39px) / 1.16 "Russo One", sans-serif;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.download-section :where(.download-prose p, .download-fixes dd, .download-closing > p:not(.download-kicker)) {
  max-width: 70ch;
  margin: 0 0 16px;
  color: var(--download-muted);
  font-size: 15px;
  line-height: 1.8;
}
.download-prose p:last-child { margin-bottom: 0; }
.download-prose strong, .download-steps strong { color: #dfe8d4; }

.download-partner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 52px;
  align-items: end;
  overflow: hidden;
  margin-bottom: 48px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid #66c8ff;
  border-radius: 16px;
  background: linear-gradient(118deg, #0625a1 0 48%, #0759cb 48% 77%, #0874d1 77%);
  box-shadow: inset 0 1px #ffffff45, 0 18px 44px #00135f40;
}
.download-partner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(118deg, transparent 0 24%, #ffffff12 24% 34%, transparent 34% 65%, #ffffff0c 65% 74%, transparent 74%);
  pointer-events: none;
}
.download-partner-logo { display: block; width: 112px; height: auto; margin-bottom: 20px; object-fit: contain; }
.download-partner .download-kicker { color: #d4eaff; }
.download-partner h2 { max-width: 24ch; margin: 10px 0 15px; color: #fff; }
.download-partner-copy > p:last-child { max-width: 61ch; margin: 0; color: #f0f6ff; font-size: 15px; line-height: 1.75; }
.download-partner-actions { display: grid; gap: 10px; justify-items: stretch; min-width: min(100%, 228px); }
.download-partner-button { justify-self: stretch; border-color: #a1ddff; background: #071d63; color: #fff; white-space: nowrap; }
.download-partner-button--android { border-color: #e1ffa0; background: #d5fd72; color: #172b0b; }
.download-partner-button--android:hover { background: #e4ffa2; }
.download-partner-button svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.download-partner-button:hover { background: #082d8d; transform: translateY(-2px); }
.download-partner-button--android:hover { background: #e4ffa2; }

.download-device-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 56px; }
.download-device-grid article { padding-top: 18px; border-top: 1px solid #cfe7b338; }
.download-device-grid h3 { margin: 0 0 17px; color: var(--download-text); font-size: 19px; line-height: 1.4; }
.download-steps { max-width: 65ch; margin: 0; padding-inline-start: 24px; color: var(--download-muted); font-size: 15px; line-height: 1.75; }
.download-steps li { padding-inline-start: 6px; }
.download-steps li + li { margin-top: 11px; }
.download-steps li::marker { color: var(--download-accent); font-weight: 800; }
.download-fixes { margin: 0; }
.download-fixes > div { display: grid; grid-template-columns: minmax(190px, .45fr) minmax(0, 1fr); gap: 22px; padding: 19px 0; border-top: 1px solid var(--download-line); }
.download-fixes dt { margin: 0; color: var(--download-text); font-size: 15px; font-weight: 800; line-height: 1.6; }
.download-section .download-fixes dd { margin: 0; }

.download-faq { border-top: 1px solid var(--download-line); }
.download-faq details { padding: 0; border-bottom: 1px solid var(--download-line); }
.download-faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 16px 32px 16px 0;
  color: var(--download-text);
  font-weight: 800;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}
.download-faq summary::-webkit-details-marker { display: none; }
.download-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; color: #c7dd9e; font-size: 23px; font-weight: 400; transform: translateY(-50%); }
.download-faq details[open] summary::after { content: "−"; }
.download-faq summary:hover { color: var(--download-accent); }
.download-faq p { max-width: 72ch; margin: 0; padding: 0 0 20px; color: var(--download-muted); font-size: 15px; line-height: 1.75; }
.download-closing h2 { margin-bottom: 18px; }
.download-closing .download-button { margin-top: 5px; }

.download-page .site-footer { margin: 0; padding: 34px var(--download-edge) 26px; border-top: 1px solid var(--download-line); background: #081813; }
.download-page .site-footer > a { margin-bottom: 12px; color: #dfe8d4; }
.download-page .site-footer p { max-width: 69ch; margin: 10px 0; color: #a1b3a3; font-size: 12px; line-height: 1.8; }
.download-page .site-footer nav a:hover { color: var(--download-accent); }

@media (max-width: 1049px) {
  body.download-page { --download-edge: 32px; }
  .download-page .header-games { display: none; }
  .download-hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 114px; }
  .download-player-host { justify-self: start; width: min(100%, 430px); }
  .download-section { padding-block: 48px; }
}
@media (max-width: 699px) {
  body.download-page { --download-edge: 20px; }
  .download-hero { gap: 27px; padding-top: 96px; padding-bottom: 40px; }
  .download-hero::before { height: 460px; background-position: center, center 30%; opacity: .7; }
  .download-breadcrumb { margin-bottom: 16px; font-size: 11px; }
  .download-kicker { font-size: 9px; letter-spacing: .12em; }
  .download-hero .download-kicker { padding-bottom: 12px; }
  .download-hero h1 { margin: 17px 0; font-size: clamp(31px, 8.6vw, 42px); }
  .download-lead { font-size: 15px; line-height: 1.7; }
  .download-hero-actions { column-gap: 15px; margin-top: 20px; }
  .download-hero-actions .download-button { padding-inline: 13px; }
  .download-guide-link { font-size: 12px; }
  .download-player-host { justify-self: center; }
  .download-section { padding-block: 38px; }
  .download-section h2 { font-size: 28px; }
  .download-section-heading { margin-bottom: 22px; }
  .download-section :where(.download-prose p, .download-fixes dd, .download-closing > p:not(.download-kicker)) { font-size: 14px; }
  .download-split, .download-device-grid, .download-partner, .download-fixes > div { grid-template-columns: minmax(0, 1fr); }
  .download-split { gap: 16px; }
  .download-device-grid { gap: 24px; }
  .download-device-grid h3 { font-size: 17px; }
  .download-steps, .download-faq p { font-size: 14px; }
  .download-fixes > div { gap: 6px; }
  .download-partner { gap: 19px; margin-bottom: 36px; padding: 24px; }
  .download-partner-logo { width: 96px; margin-bottom: 14px; }
  .download-partner-copy > p:last-child { font-size: 14px; }
  .download-faq summary { min-height: 60px; font-size: 14px; }
  .download-page .site-footer { padding-block: 24px; }
}
@media (max-width: 359px) {
  body.download-page { --download-edge: 16px; }
  .download-page .floating-game-header .header-real-play { padding-inline: 10px; font-size: 11px; }
  .download-page .header-brand > span, .download-page .header-brand small { font-size: 10px; }
  .download-page .header-brand > img { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .download-button, .download-partner-button { transition: none; }
  .download-button:hover, .download-partner-button:hover { transform: none; }
}
