/* Besturing & gameplay (/besturing-gameplay/). De HTML komt uit build/besturing.py, de gegevens uit besturing.json. */

@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url('/shop/fonts/barlow-condensed-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/shop/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }

.bs {
  --ink: #f4f1e8;
  --muted: #bdb8aa;
  --surface: #1f1e1a;
  --surface-2: #282722;
  --surface-3: #312f29;
  --yellow: #f9fb00;
  --amber: #fcc400;
  --green: #2f5e2d;
  --green-ink: #e9f2e4;
  --dark: #12120f;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --radius: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 3.4vw, 44px) 0 72px;
  color: var(--ink);
  font-weight: 400;
}
.bs :where(h2, h3, p, ul, ol, figure, figcaption, table) { margin: 0; padding: 0; }
.bs :where(ul, ol) { list-style: none; }
.bs a { text-decoration: none; color: inherit; }
.bs :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 10px; }
.bs ::selection { background: var(--yellow); color: var(--dark); }
.bs :is(p, li) { font-weight: 400; }
.bs img { display: block; width: 100%; height: auto; }
.bs-ico { width: 1em; height: 1em; flex: none; }
.bs-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- typografie ---------- */
.bs .bs-h2 {
  font: 700 clamp(2rem, 1.4rem + 2.2vw, 3.1rem)/.98 var(--display);
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.bs .bs-h3 { font: 700 1.5rem/1.02 var(--display); text-transform: uppercase; letter-spacing: .005em; color: var(--ink); text-wrap: balance; }
.bs .bs-text { font-size: 1.04rem; line-height: 1.62; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.bs-sec { margin-top: clamp(80px, 10vw, 136px); }
.bs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 3.4vw, 44px); }

.bs .bs-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .98rem; color: var(--yellow);
  text-underline-offset: 4px;
}
.bs-more .bs-ico { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .bs-more:hover { text-decoration: underline; }
  .bs-more:hover .bs-ico { transform: translateX(3px); }
}

/* ---------- bovenaan ---------- */
.bs-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.bs .bs-lead {
  font-size: clamp(1.22rem, 1.05rem + .7vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 30ch;
  text-wrap: pretty;
}
.bs-nav { margin-top: 32px; }
.bs-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--surface-2); color: var(--ink);
  font-size: .95rem; font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out);
}
.bs-nav a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .bs-nav a:hover { background: var(--yellow); color: var(--dark); } }
.bs-top__photo { position: relative; }
.bs-top__photo img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.bs-top__photo figcaption { margin-top: 10px; font-size: .86rem; color: var(--muted); }

/* ---------- soorten besturing ---------- */
.bs-methods { padding: clamp(32px, 4.4vw, 56px); border-radius: calc(var(--radius) + 8px); background: var(--surface); }
.bs-methods__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.bs-method { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; align-items: start; }
.bs-method__art { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 8px; border-radius: 18px; background: var(--surface-3); color: var(--yellow); }
.bs-method__art .bs-art { width: 50px; height: 50px; }
.bs-method .bs-more { margin-top: 6px; justify-self: start; }
.bs-hint {
  display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(32px, 4vw, 48px);
  padding: 14px 20px; border-radius: 14px; background: var(--surface-2);
  font-weight: 500; color: var(--ink);
  transition: background-color 160ms ease, transform 120ms var(--ease-out);
}
.bs-hint .bs-ico { color: var(--yellow); }
.bs-hint:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .bs-hint:hover { background: var(--surface-3); } }

/* ---------- afstellen ---------- */
.bs-settings { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.bs-settings__intro { display: grid; gap: 22px; position: sticky; top: 110px; }
.bs-path {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start;
  padding: 10px 16px; border-radius: 12px; background: var(--dark);
  font: 700 1.25rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--yellow);
}
.bs-path__sep { width: 18px; height: 18px; color: var(--muted); }
.bs-settings__list { display: grid; gap: 12px; }
.bs-set { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface); }
.bs-set .bs-h3 { margin-bottom: 6px; }
.bs-set__art { display: grid; place-items: center; aspect-ratio: 112 / 80; border-radius: 14px; background: var(--surface-2); color: var(--ink); }
.bs-set__art .bs-art { width: 82%; height: auto; overflow: visible; }
.bs-art__hi { stroke: var(--yellow); }
.bs-art__zone { fill: var(--amber); fill-opacity: .22; }
.bs-art__dot { fill: var(--yellow); }

/* ---------- knoppen ---------- */
.bs-keys__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: 28px; }
.bs-keys__head .bs-h2 { margin-bottom: 14px; }

.bs-seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; border-radius: 16px; background: var(--surface); }
.bs-seg[hidden] { display: none; }
.bs-seg__pill {
  position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 10px) / 3); border-radius: 12px; background: var(--yellow);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform 240ms var(--ease-out);
}
.bs .bs-seg__btn {
  position: relative; z-index: 1; min-height: 46px; padding: 0 20px; margin: 0;
  border: 0; border-radius: 12px; background: transparent; box-shadow: none;
  font-family: inherit; font-size: .98rem; line-height: 1; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: color 200ms ease, transform 120ms var(--ease-out);
}
.bs .bs-seg__btn[aria-pressed="true"] { color: var(--dark); }
.bs .bs-seg__btn:active { transform: scale(.96); }

.bs-table { overflow-x: auto; border-radius: var(--radius); background: var(--surface); }
.bs-table table { width: 100%; border-collapse: collapse; border: 0; font-size: 1rem; }
.bs-table :is(th, td) { border: 0; padding: 14px 22px; text-align: left; vertical-align: middle; background: none; color: var(--ink); }
.bs-table thead th { padding-top: 20px; padding-bottom: 12px; font: 700 1.1rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.bs-table tbody th { font-weight: 500; }
.bs-table tbody tr:nth-child(odd) { background: var(--surface-2); }
.bs-table tbody tr:last-child :is(th, td) { padding-bottom: 18px; }
.bs-js .bs-table[data-input] .bs-c { display: none; }
.bs-js .bs-table[data-input="pc"] .bs-c--pc,
.bs-js .bs-table[data-input="xbox"] .bs-c--xbox,
.bs-js .bs-table[data-input="ps"] .bs-c--ps { display: table-cell; }
.bs-js .bs-table tbody th { width: 40%; }

.bs-combo { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bs-op { font-size: .9rem; color: var(--muted); }
.bs .bs-key, .bs .bs-cap {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 9px;
  background: var(--surface-3); color: var(--ink);
  font-family: inherit; font-size: 1rem; line-height: 1; font-weight: 650;
}
.bs .bs-key { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .45); padding-bottom: 3px; }
.bs .bs-key--wide { padding: 0 14px 3px; }
.bs .bs-face { width: 40px; padding: 0; border-radius: 50%; background: #11110e; }
.bs-face--y { color: #f5c400 !important; }
.bs-face--a { color: #6cc04a !important; }
.bs-face--b { color: #ef5a4c !important; }
.bs-face--x { color: #4b9be8 !important; }
.bs-face--triangle { color: #3fc4a4 !important; }
.bs-face--circle { color: #f0645a !important; }
.bs-face--cross { color: #7ea6ef !important; }
.bs-face--square { color: #e08bcb !important; }
.bs .bs-shoulder { min-width: 52px; border-radius: 9px 9px 14px 14px; font-size: .92rem; letter-spacing: .02em; }
.bs .bs-stick, .bs .bs-pill { padding: 0 14px 0 8px; border-radius: 999px; font-size: .95rem; font-weight: 550; }
.bs .bs-pill { padding: 0 14px; }
.bs-cap__ico { width: 22px; height: 22px; flex: none; }
.bs-face .bs-cap__ico { width: 20px; height: 20px; }
.bs .bs-note { margin-top: 18px; font-size: .95rem; line-height: 1.55; color: var(--muted); max-width: 70ch; }
.bs .bs-note[data-bs-pad] { color: var(--ink); }
.bs .bs-note[hidden] { display: none; }

/* ---------- het land op ---------- */
.bs-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); counter-reset: none; }
.bs-step { display: grid; gap: 12px; align-content: start; }
.bs-step__pic { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--surface); margin-bottom: 6px; }
.bs-step__pic img { height: 100%; object-fit: cover; }
.bs-step--drawn .bs-step__pic { display: grid; place-items: end center; background: var(--amber); color: var(--dark); }
.bs-silo { width: 78%; height: auto; margin-bottom: 0; }
.bs-step .bs-text { max-width: 34ch; }

/* ---------- problemen ---------- */
.bs-faqs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.bs-faqlist { display: grid; gap: 10px; }
.bs-faq { border-radius: 16px; background: var(--surface); }
.bs-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 22px; list-style: none; cursor: pointer;
  font-weight: 600; font-size: 1.06rem; color: var(--ink);
  border-radius: 16px;
}
.bs-faq summary::-webkit-details-marker { display: none; }
.bs-faq__ico { width: 22px; height: 22px; color: var(--yellow); transition: transform 200ms var(--ease-out); }
.bs-faq[open] .bs-faq__ico { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .bs-faq summary:hover { background: var(--surface-2); } }
.bs-faq__body { display: grid; gap: 14px; justify-items: start; padding: 0 22px 22px; }
.bs-faq__body p { font-size: 1.02rem; line-height: 1.62; color: var(--muted); max-width: 62ch; }

/* ---------- afsluiter ---------- */
.bs-outro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: calc(var(--radius) + 8px); background: var(--green); color: var(--green-ink);
}
.bs .bs-outro .bs-h2 { color: #fff; margin-bottom: 16px; }
.bs .bs-outro__text { font-size: 1.12rem; line-height: 1.55; color: var(--green-ink); max-width: 44ch; text-wrap: pretty; }
.bs-links { display: grid; gap: 8px; }
.bs-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 0 20px; border-radius: 14px; background: rgba(0, 0, 0, .22);
  font-weight: 600; color: #fff;
  transition: background-color 160ms ease, transform 120ms var(--ease-out);
}
.bs-links a .bs-ico { color: var(--yellow); transition: transform 200ms var(--ease-out); }
.bs-links a:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .bs-links a:hover { background: rgba(0, 0, 0, .36); }
  .bs-links a:hover .bs-ico { transform: translateX(3px); }
}

/* ---------- binnenkomst: besturing.js zet .bs-rv alleen op delen onder de vouw ---------- */
@media (prefers-reduced-motion: no-preference) {
  .bs-rv { opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .bs-rv.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-seg__pill { transition: none; }
  .bs-more .bs-ico, .bs-links a .bs-ico, .bs-faq__ico { transition: none; }
}

/* ---------- smaller ---------- */
@media (max-width: 1020px) {
  .bs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bs-step__pic { aspect-ratio: 4 / 3; }
}
@media (max-width: 900px) {
  .bs-top, .bs-head, .bs-settings, .bs-faqs, .bs-outro { grid-template-columns: minmax(0, 1fr); }
  .bs-top__photo { order: -1; }
  .bs .bs-lead { max-width: 40ch; }
  .bs-settings__intro { position: static; }
  .bs-methods__list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bs-method { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: none; column-gap: 18px; row-gap: 8px; }
  .bs-method__art { grid-row: span 3; width: 64px; height: 64px; margin: 0; }
  .bs-method__art .bs-art { width: 42px; height: 42px; }
}
@media (max-width: 600px) {
  .bs { padding-top: 16px; }
  .bs-sec { margin-top: 72px; }
  .bs-methods { padding: 26px 20px; border-radius: var(--radius); }
  .bs-nav { margin-top: 24px; }
  .bs-nav ul { gap: 6px; }
  .bs-nav a { min-height: 40px; padding: 0 14px; font-size: .9rem; }
  .bs-set { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bs-set__art { aspect-ratio: auto; height: 104px; }
  .bs-set__art .bs-art { width: auto; height: 76px; }
  .bs-keys__head { margin-bottom: 20px; }
  .bs-seg { display: grid; width: 100%; }
  .bs .bs-seg__btn { padding: 0 8px; font-size: .92rem; }
  .bs-table :is(th, td) { padding: 12px 14px; }
  .bs-js .bs-table tbody th { width: 50%; }
  .bs-steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .bs-step__pic { aspect-ratio: 16 / 10; }
  .bs-step--drawn .bs-silo { width: auto; height: 86%; }
  .bs-outro { padding: 28px 20px; border-radius: var(--radius); }
}
