/* Oasis typing scorecards, performance and arcade board. */
.typing-results * { box-sizing: border-box; }
.typing-results button { cursor: var(--cur-hand); --crt-cursor: hand; }
.typing-results button:disabled { opacity: .45; cursor: var(--cur-default); --crt-cursor: default; }
.typing-results :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* A souvenir and an honestly labelled arcade board, extending the orange poster. */
.typing-editorial--finished { cursor: var(--cur-default); --crt-cursor: default; }
.typing-results { max-width: 680px; width: 100%; margin: 0 auto; font-family: var(--font-sans); }
.typing-editorial--finished .typing-ed-header, .typing-editorial--finished .typing-ed-stats { display: none; }
.typing-editorial--finished .typing-ed-body { padding: 25px; }
/* Canvas preview and PNG share the exact same rendering path. */
.typing-scorecard { margin: 0; background: #0C1B14; border: 1px solid #E9E5CF; box-shadow: 5px 5px 0 #173C2D; aspect-ratio: 3 / 2; overflow: hidden; }
.typing-scorecard-image { display: block; width: 100%; height: auto; }
.typing-card-loading { padding: 30px; font-family: var(--font-sans); font-size: 13px; color: #F5F1DC; }
.typing-score-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; align-items: end; }
.typing-score-controls label { display: flex; flex-direction: column; width: 100%; gap: 6px; font-size: 12px; color: #173C2D; font-weight: 700; }
.typing-score-controls input { background: #FFF; border: 1px solid #173C2D; color: #173C2D; padding: 10px; font: inherit; width: 100%; cursor: var(--cur-text); --crt-cursor: text; border-radius: 0; }
.typing-results button { padding: 10px 12px; background: #173C2D; color: #FFF; border: 1px solid #173C2D; font-family: var(--font-sans); font-size: 11px; font-weight: 600; min-height: 40px; transition: background .18s ease-out; }
.typing-results button:hover:not(:disabled) { background: #285942; }
.typing-score-status, .typing-board-note { font-size: 11px; color: #173C2D; line-height: 1.6; margin: 12px 0 20px; }
.typing-board-header { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding-top: 20px; border-top: 1px solid #173C2D; }
.typing-board-header h3 { font-family: var(--font-serif); font-size: 26px; font-weight: 400; color: #173C2D; margin: 0; }
.typing-board-header > span { background: #173C2D; color: #FFF; font-size: 8px; padding: 5px 7px; letter-spacing: .04em; white-space: nowrap; }
.typing-board-note { margin: 8px 0 12px; }
.typing-board-scroll { overflow-x: auto; }
.typing-board { width: 100%; border-collapse: collapse; color: #173C2D; font-size: 12px; text-align: left; }
.typing-board th, .typing-board td { padding: 10px 6px; border-bottom: 1px solid #AB4D12; }
.typing-board th { font-size: 9px; letter-spacing: .06em; }
.typing-board td:nth-last-child(-n+2), .typing-board th:nth-last-child(-n+2) { text-align: right; }
.typing-board small { font-size: 8px; display: inline-block; margin-left: 8px; font-weight: 500; }
.typing-board-current { background: #173C2D; color: #FFF; font-weight: 700; }
.typing-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .typing-editorial--finished .typing-ed-body { padding: 20px 15px; }
  .typing-score-controls button { flex: 1 1 auto; }
  .typing-board-header h3 { font-size: 24px; }
}

/* The concert sits above desktop apps and immediately below its typing window. */
.typing-video-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #0C1B14;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  filter: grayscale(1) contrast(1.35);
}
.typing-video-backdrop iframe {
  position: absolute;
  top: 50%; left: 50%;
  /* Overscan by 100px vertically to crop the embed's title/uploader chrome.
     Both dimensions retain 16:9 cover framing at every viewport size. */
  width: max(100vw, calc(177.78vh + 355.56px));
  height: max(calc(100vh + 200px), 56.25vw);
  max-width: none;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease-in-out;
}
.typing-video-playing iframe { opacity: 1; }
.typing-video-backdrop[hidden] { display: none; }
.typing-video-dither {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(#081710 45%, transparent 50%);
  background-size: 4px 4px;
  opacity: .7;
  mix-blend-mode: multiply;
}
.typing-video-scanlines {
  position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0px, rgba(0,0,0,.35) 1px, transparent 1px, transparent 4px);
  box-shadow: inset 0 0 150px 30px rgba(0,0,0,.55);
}
body.typing-performance-active .scene,
body.typing-performance-active .desktop { background: transparent; }
body.typing-performance-active .scene { z-index: 1; }
body.typing-performance-active #wallpaper { opacity: 0; }
body.typing-performance-active .mob-springboard { visibility: hidden; }
body.typing-performance-active .mob-appview,
body.typing-performance-active .mob-appview-body { background: transparent; }
body.typing-performance-active .typing-editorial { background: rgba(243,110,22,.90); }
/* Fill the content area, including the space below shorter poster content. */
.typing-window-content { background: #F36E16; }
.typing-window-content > .typing-editorial { min-height: 100%; }
body.mobile-springboard-active .typing-video-backdrop { z-index: 9050; }
@media (max-width: 600px) { .typing-ed-title { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) {
  .typing-video-backdrop iframe { transition: none; }
}
