:root {
  color-scheme: light;
  --panel: #fbfbf8;
  --panel-line: #d7d9d2;
  --ink: #202420;
  --muted: #667069;
  --accent: #ef1c25;
  --accent-strong: #b9151c;
  --focus: #fff200;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  padding: clamp(16px, 3vw, 28px);
  background: #eef0ed;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

button:hover:not(:disabled) {
  border-color: #9da59d;
}

button:focus-visible,
video:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

button:disabled {
  color: #9aa19a;
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.help-window-shell {
  display: grid;
  width: min(760px, 100%);
  gap: 18px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 26px);
  border-top: 5px solid var(--accent);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.help-window-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.help-window-eyebrow,
.help-window-heading h1,
.help-window-description {
  margin: 0;
}

.help-window-eyebrow {
  margin-bottom: 5px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-window-heading h1 {
  font-size: clamp(23px, 4vw, 30px);
  line-height: 1.15;
}

#closeHelpWindowButton {
  width: 38px;
  min-width: 38px;
  padding: 0;
  background: transparent;
  font-weight: 800;
}

.help-window-description {
  color: #3f4942;
  font-size: 15px;
  line-height: 1.55;
}

.help-window-media {
  width: 100%;
  overflow: hidden;
  border: 1px solid #cfd3cc;
  border-radius: 8px;
  background: #151719;
  aspect-ratio: 16 / 9;
}

.help-window-media video {
  display: block;
  width: 100%;
  height: 100%;
  background: #151719;
  object-fit: contain;
}

.help-window-video-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 24px;
  place-items: center;
  background: linear-gradient(145deg, #22282a, #111415);
  color: #f2f3ee;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.help-window-tips {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 21px;
  color: #3f4942;
  line-height: 1.5;
}

.help-window-footer {
  display: grid;
  gap: 13px;
  padding-top: 3px;
  border-top: 1px solid var(--panel-line);
}

.help-window-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.help-window-navigation button:last-child {
  justify-self: end;
}

#helpWindowPosition {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.help-window-primary {
  justify-self: end;
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-weight: 750;
}

@media (max-width: 520px) {
  .help-window-navigation {
    grid-template-columns: 1fr 1fr;
  }

  #helpWindowPosition {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }

  .help-window-navigation button {
    grid-row: 2;
  }
}
