/* HOTAS Project section - hazard theme. Builds on /games/FotGFlightControl/style.css (same tokens, fonts, buttons). */
:root {
  --hz-yellow: #ffe414;
  --hz-black: #000;
  --hz-stripe: repeating-linear-gradient(-45deg, #ffe414 0 16px, #000 16px 32px);
  --hz-stripe-soft: repeating-linear-gradient(-45deg, rgba(255,228,20,.10) 0 16px, transparent 16px 32px);
}

/* Hazard tape */
.hz-tape { display: block; height: 18px; background: var(--hz-stripe); border-block: 2px solid #000; }
.hz-tape.slim { height: 10px; }
.hz-tape.top { position: relative; z-index: 1; }
.hz-badge { display: inline-block; font: 700 12px/1.45 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #000; background: var(--hz-yellow); padding: 8px 12px; margin-bottom: 18px; border-radius: 3px; position: relative; }
.hz-badge::after { content: ""; position: absolute; inset: auto 0 -5px 0; height: 5px; background: var(--hz-stripe); }

/* Hero */
.hz-hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 380px at 85% 10%, rgba(255,228,20,.10), transparent 60%), #000; }
.hz-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hz-stripe-soft); opacity: .55; mask-image: linear-gradient(90deg, transparent 45%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 100%); }
.hz-hero-inner { padding: 72px 0 60px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 40px; align-items: center; }
.hz-hero-copy { min-width: 0; }
.hz-emblem { justify-self: center; width: min(380px, 100%); height: auto; filter: drop-shadow(0 0 36px rgba(255,228,20,.28)); }
.hz-hero h1 { font-size: clamp(38px, 6vw, 72px); text-transform: uppercase; margin-bottom: 22px; }
.hz-hero h1 small { display: block; font-size: .45em; letter-spacing: .02em; color: var(--hz-yellow); margin-top: 10px; }
.hz-lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--soft); max-width: 38em; margin-bottom: 14px; }
.hz-lede strong { color: var(--hz-yellow); }

/* Warning panels */
.hz-warn { position: relative; margin: 26px 0 0; padding: 20px 22px 20px 26px; background: #0d0c00; border: 2px solid var(--hz-yellow); border-radius: 6px; color: var(--soft); }
.hz-warn::before { content: ""; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 12px; background: var(--hz-stripe); border-radius: 4px 0 0 4px; }
.hz-warn { padding-left: 34px; }
.hz-warn h3 { font: 700 13px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hz-yellow); margin: 0 0 8px; }
.hz-warn p { margin: 0 0 8px; }
.hz-warn p:last-child { margin-bottom: 0; }

/* Sections */
.hz-section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.hz-section.alt { background: #060600; }
.hz-section .section-head { margin-bottom: 36px; }
.hz-section .section-head h2 { position: relative; padding-bottom: 20px; }
.hz-section .section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 8px; background: var(--hz-stripe); }

/* Aim cards (goals, not promises) */
.hz-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hz-card { position: relative; padding: 24px 20px 22px; background: var(--panel); border: 1px solid var(--line); border-top: 6px solid transparent; border-image: var(--hz-stripe) 6 0 0 0; border-radius: 0 0 var(--r) var(--r); }
.hz-card .tag { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hz-yellow); margin-bottom: 14px; }
.hz-card h3 { font-size: 21px; margin-bottom: 8px; }
.hz-card p { color: var(--soft); font-size: 15.5px; margin: 0; }
.hz-note { margin-top: 22px; color: var(--muted); font-size: 15px; }
.hz-note strong { color: var(--hz-yellow); }

/* Plan phases */
.hz-phases { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: ph; }
.hz-phases li { counter-increment: ph; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--hz-yellow); border-radius: 0 var(--r) var(--r) 0; color: var(--soft); }
.hz-phases li::before { content: "0" counter(ph); font: 700 28px/1 var(--display); color: var(--hz-yellow); }
.hz-phases h3 { font-size: 20px; margin: 0 0 6px; }
.hz-phases p { margin: 0; }
.hz-phases .when { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--soft); white-space: nowrap; }
.hz-phases .when.now { background: var(--hz-yellow); color: #000; border-color: var(--hz-yellow); }

.hz-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.hz-two .card { padding: 24px; }
.hz-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.hz-three div { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.hz-three b { display: block; font: 700 22px/1 var(--display); color: var(--hz-yellow); margin-bottom: 8px; }

/* Lists of data */
.hz-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hz-lists .side-card ul { margin-bottom: 0; }
.hz-lists .no li::marker { content: "✕  "; color: var(--hz-yellow); }
.hz-lists .yes li::marker { content: "✓  "; color: var(--cyan); }

/* FAQ */
.hz-faq { display: grid; gap: 10px; max-width: 860px; }
.hz-faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.hz-faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; color: #fff; list-style-position: inside; }
.hz-faq summary:hover { color: var(--hz-yellow); }
.hz-faq details[open] { border-color: rgba(255,228,20,.45); }
.hz-faq details[open] summary { border-bottom: 1px solid var(--line); }
.hz-faq details > div { padding: 14px 18px 6px; color: var(--soft); }

/* Contact */
.hz-contact { position: relative; padding: 34px 32px; border: 2px solid var(--hz-yellow); border-radius: 8px; background: #0d0c00; overflow: hidden; }
.hz-contact::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 12px; background: var(--hz-stripe); }
.hz-contact h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 12px; }
.hz-contact p { color: var(--soft); max-width: 44em; }
.hz-mail { display: inline-block; font: 700 clamp(18px, 3vw, 28px)/1.2 var(--mono); color: var(--hz-yellow); word-break: break-all; }

/* Teaser block for the main Flight Control page */
.hz-teaser { position: relative; border-block: 2px solid #000; background: #0a0900; }
.hz-teaser .wrap { padding: 56px 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 32px; align-items: center; }
.hz-teaser h2 { font-size: clamp(28px, 3.6vw, 42px); text-transform: uppercase; margin-bottom: 12px; }
.hz-teaser p { color: var(--soft); max-width: 40em; }

.hz-foot { padding: 22px 0 8px; color: var(--muted); font-size: 14.5px; }

@media (max-width: 1020px) {
  .hz-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hz-two, .hz-lists { grid-template-columns: 1fr; }
  .hz-teaser .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hz-hero-inner { grid-template-columns: 1fr; }
  .hz-emblem { order: -1; width: min(220px, 60%); justify-self: start; }
}
@media (max-width: 760px) {
  .hz-phases li { grid-template-columns: 1fr; gap: 8px; }
  .hz-three { grid-template-columns: 1fr; }
  .hz-hero-inner { padding: 48px 0 40px; }
}
@media (max-width: 620px) {
  .hz-cards { grid-template-columns: 1fr; }
  .hz-section { padding: 60px 0; }
  .hz-contact { padding: 28px 20px; }
}
@media (forced-colors: active) { .hz-tape, .hz-warn::before, .hz-section .section-head h2::after, .hz-badge::after { forced-color-adjust: none; } }

#hotas { scroll-margin-top: 70px; }

/* Video (click to play; nothing loads from YouTube until pressed) */
.hz-video-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); gap: 28px; align-items: start; }
.hz-video { position: relative; aspect-ratio: 16 / 9; border: 2px solid var(--hz-yellow); border-radius: 8px; overflow: hidden; background: #000; }
.hz-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hz-play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.hz-play img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hz-play:hover img, .hz-play:focus-visible img { opacity: .75; }
.hz-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.hz-play-icon { position: absolute; left: 50%; top: 46%; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%; background: var(--hz-yellow); box-shadow: 0 0 40px rgba(255,228,20,.35); }
.hz-play-icon::after { content: ""; position: absolute; left: 33px; top: 24px; border-style: solid; border-width: 19px 0 19px 30px; border-color: transparent transparent transparent #000; }
.hz-play-label { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font: 700 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--hz-yellow); }
.hz-chapters { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; counter-reset: none; }
.hz-chapters a { display: block; padding: 7px 10px; border-left: 2px solid var(--line); color: var(--soft); text-decoration: none; font-size: 15px; }
.hz-chapters a:hover, .hz-chapters a:focus-visible { color: #fff; border-left-color: var(--hz-yellow); background: rgba(255,228,20,.05); }

/* Screenshot grid */
.hz-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 34px; }
.hz-shots figure { margin: 0; }
.hz-shots img { width: 100%; height: auto; border: 1px solid var(--line-2, var(--line)); border-radius: 6px; display: block; }
.hz-shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

@media (max-width: 860px) {
  .hz-video-grid { grid-template-columns: minmax(0, 1fr); }
  .hz-shots { grid-template-columns: minmax(0, 1fr); }
}
