/* Steampunk Jack's Video Poker: the product page, in the game's own look (its CommonDictionary.xaml). */

:root {
  --bg: #120e0a;
  --panel: #1c1814;
  --panel-edge: #3a2f22;
  --text: #f3d9aa;          /* parchment */
  --muted: #b9a37c;
  --accent: #ff8c00;        /* the game's DarkOrange */
  --brass: #e8b84a;
  --paper: #fce9b9;         /* the card faces */
  --ink: #1c1814;
  --heading: "Cinzel Decorative", Georgia, serif;
  --body: "Arvo", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 140, 0, .14), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .015) 0 2px, transparent 2px 36px),
    var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
}

a { color: var(--brass); }
a:hover { color: var(--accent); }

q { quotes: "“" "”"; color: var(--paper); white-space: nowrap; }

/* ---------------------------------------------------------------- bar */

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px 24px; border-bottom: 1px solid var(--panel-edge); background: rgba(28, 24, 20, .85);
}
.bar .home { font-family: var(--heading); font-size: 15px; text-decoration: none; color: var(--text); }
.bar nav a { margin-left: 18px; text-decoration: none; font-size: 15px; }

main { max-width: 1160px; margin: 0 auto; padding: 0 20px 40px; }

/* ---------------------------------------------------------------- hero */

.hero { padding: 40px 0 20px; }
.hero-text { display: flex; gap: 32px; align-items: center; }
/* The animated picture's <picture> (prefers-reduced-motion gets the PNG) stays out of the flex layout, and so
   does its <source>, or it becomes a flex item of its own (the browser still reads it). */
picture.anim { display: contents; }
picture.anim source { display: none; }
.hero-text .jack { width: 190px; height: auto; flex: none; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .6)); }

h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(34px, 5vw, 56px); color: var(--text); }
h1 span { color: var(--accent); }
h2 { font-size: clamp(24px, 3vw, 32px); color: var(--accent); }
h3 { font-size: 19px; color: var(--brass); }

.lead { font-size: 20px; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 18px; }

.sticker {
  display: inline-block; margin-bottom: 10px; padding: 4px 14px; border-radius: 6px;
  background: var(--accent); color: var(--ink); font-family: var(--heading); font-size: 15px;
  transform: rotate(-3deg); box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 8px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none;
}
.btn:hover { background: #ffa333; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: rgba(255, 140, 0, .12); color: var(--accent); }

/* Microsoft's own "Download from the Microsoft Store" badge (img/ms-store-badge.svg), as they supply it: never redrawn or
   recolored, only scaled to the height of the .btn beside it (17px x 1.6 + 2 x 11px padding + 2 x 2px border). */
.store-badge { display: block; flex: none; align-self: center; transition: transform .15s; }
.store-badge:hover, .store-badge:focus-visible { transform: translateY(-2px); }
.store-badge img { display: block; height: calc(17px * 1.6 + 26px); width: auto; }
@media (prefers-reduced-motion: reduce) { .store-badge { transition: none; } .store-badge:hover { transform: none; } }

.shot { margin: 28px 0 0; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--panel-edge); box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
}
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; text-align: center; }

/* ---------------------------------------------------------------- panels */

.panel {
  margin-top: 28px; padding: 26px 28px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--panel-edge);
}
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.grid article {
  padding: 16px 18px; border-radius: 10px; background: rgba(0, 0, 0, .22); border: 1px solid var(--panel-edge);
}
.grid article p { color: var(--text); font-size: 16px; }

.note { margin-top: 16px !important; color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.split .shot { margin: 0; }

.specs { margin: 0; padding-left: 20px; }
.specs li { margin-bottom: 6px; }

.cta { text-align: center; }
.cta .btn-row { justify-content: center; margin-top: 14px; }

/* ---------------------------------------------------------------- legal pages (privacy) */

.kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.doc-hero { padding-bottom: 8px; }
.doc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; padding: 24px 0 72px; }
.doc-toc { position: sticky; top: 24px; align-self: start; }
.doc-toc p { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8em; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--panel-edge); }
.doc-toc a { display: block; padding: .32em 0 .32em 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.4; }
.doc-toc a:hover { color: var(--text); border-left-color: var(--accent); }
.doc-body { max-width: 720px; min-width: 0; }
.doc-body > section { padding-top: 40px; scroll-margin-top: 24px; }
.doc-body > section:first-child { padding-top: 0; }
.doc-body > section + section { border-top: 1px solid var(--panel-edge); margin-top: 44px; }
.doc-body h2 { font-size: clamp(21px, 2.6vw, 26px); }
.doc-body p { margin: 0 0 1em; }
.doc-body ul { margin: 0 0 1em; padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }
.doc-body code { color: var(--paper); font-size: 15px; overflow-wrap: anywhere; }
.doc-body strong { color: var(--brass); }

/* The guide's extras in the same layout: sub-headings, pictures, tables, key caps, questions */
.doc-toc ol ol { border-left: 0; margin-left: 14px; }
.doc-toc ol ol a { font-size: 14px; padding-top: .18em; padding-bottom: .18em; }
.doc-body h3 { margin-top: 1.6em; scroll-margin-top: 24px; }
.doc-body .shot { margin: 8px 0 1.2em; }
.doc-body .shot img { box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.doc-body .shot a { display: block; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 16px; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--panel-edge); }
.doc-body th { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.doc-body td:first-child { white-space: nowrap; }
.doc-body .settings td:first-child { white-space: normal; width: 34%; color: var(--paper); }
.doc-body .default { display: inline-block; padding: 0 7px; border-radius: 5px; background: rgba(255, 140, 0, .16); color: var(--accent); font-weight: 700; font-size: 14px; }
.doc-body .table-wrap { overflow-x: auto; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0 6px; border: 1px solid var(--panel-edge); border-bottom-width: 2px;
  border-radius: 5px; background: var(--panel); color: var(--paper); font: 700 14px/1.6 var(--body); text-align: center;
}
.doc-body details { border: 1px solid var(--panel-edge); border-radius: 10px; background: var(--panel); margin: 0 0 10px; padding: 0 16px; }
.doc-body details[open] { padding-bottom: 4px; }
.doc-body summary { cursor: pointer; padding: 12px 0; color: var(--paper); font-weight: 700; }
.doc-body details > :last-child { margin-bottom: 12px; }
.doc-body .tip { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; color: var(--text); }
/* ---------------------------------------------------------------- the promo video (index.html #meet-jack) */

.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 6px 0 10px; border-radius: 10px;
  background: #000; border: 1px solid var(--panel-edge); box-shadow: 0 14px 32px rgba(0, 0, 0, .55); }
.video .note { color: var(--muted); font-size: 15px; text-align: center; }

/* ---------------------------------------------------------------- download page (download/) */

.dl-cta { margin: 18px 0 10px; }
.dl-cta .btn > span { display: inline; }
.dl { padding: 16px 0 72px; }
.dl > section { padding-top: 36px; scroll-margin-top: 24px; }
.dl > section + section { border-top: 1px solid var(--panel-edge); margin-top: 40px; }
.dl-table th { width: 30%; text-transform: none; letter-spacing: 0; font-size: 15px; }
.dl-table td:first-child { white-space: normal; }
.dl-hashes code { font-size: 14px; word-break: break-all; }
.dl-steps { margin: 0 0 1.2em; padding-left: 22px; }
.dl-steps li { margin-bottom: 14px; }
.dl-steps h3 { margin: 0 0 4px; font-size: 18px; }
.dl-note { color: var(--muted); font-size: 15px; }
.dl-how { margin: 0 0 1em; padding: 12px 16px; border: 1px solid var(--panel-edge); border-radius: 10px; background: var(--panel); }
.dl-how summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.dl-how ol { margin: 12px 0 1em; padding-left: 22px; }
.dl-how pre { margin: 8px 0; padding: 10px 12px; overflow-x: auto; border-radius: 8px; background: var(--bg); }
.dl-how pre code { white-space: pre-wrap; word-break: break-all; }
.dl-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
.dl-pick select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--panel-edge); background: var(--panel); color: var(--text); }
.dl-pick-hash code { font-size: 14px; word-break: break-all; }
.dl-close { margin-top: 44px; color: var(--muted); }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 0; padding-top: 8px; }
  .doc-toc { position: static; background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 14px; padding: 18px 20px; margin-bottom: 28px; }
}

/* ---------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--panel-edge); padding: 20px; text-align: center; color: var(--muted); font-size: 15px;
}
footer p { margin: 4px 0; }
footer .fine { font-size: 13px; }

/* Made in the USA, as on the rest of the company site (/css/site.css): the flag beside the words, larger under the
   hero and in the closing panel, small in every footer. */
.usa { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--muted); font: 700 13px/1.2 var(--body);
  letter-spacing: .12em; text-transform: uppercase; }
.cta .usa { justify-content: center; }
.usa .flag { width: 38px; height: 20px; border-radius: 2px; }
.flag { width: 21px; height: 11px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); flex: none; }
.made-in { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------------------------------------------------------------- narrow screens */

@media (max-width: 760px) {
  .hero-text { flex-direction: column; text-align: center; gap: 12px; }
  .hero-text .jack { width: 130px; }
  .hero .btn-row { justify-content: center; }
  .split { grid-template-columns: 1fr; }
  .bar nav a { margin: 0 14px 0 0; }
  .panel { padding: 20px 18px; }
  q { white-space: normal; }
}
