/* DUEL browser demo (dirtnapgame.com/duel). GENERATED by
   web-demos/duel/tools/sync_site.py from the demo's index.html <style>
   block - edit THERE, never here. The site CSP is style-src 'self':
   every rule lives in this file. */

@font-face {
  font-family: "Silkscreen";
  src: url("/assets/fonts/silkscreen-regular.woff2") format("woff2");
  font-display: swap;
}

  html, body { margin: 0; height: 100%; background: #070503; overflow: hidden; }
  canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    cursor: none;
    background: #070503;
  }
  /* logo + wishlist sit in the top-left corner as crisp DOM */
  #topui {
    position: fixed; top: 14px; left: 16px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    pointer-events: none;
  }
  #logo {
    width: min(20vw, 220px);
    image-rendering: auto;
  }
  #score {
    position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
    display: none;
    font-family: Silkscreen, monospace; font-size: 30px; letter-spacing: 3px;
    color: #e8dcc8;
    text-shadow: 3px 3px #141008, -3px 3px #141008,
      3px -3px #141008, -3px -3px #141008;
  }
  #score.show { display: block; }
  #wishlist {
    pointer-events: auto;
    font-family: Silkscreen, monospace; font-size: 14px; letter-spacing: 1px;
    color: #e8dcc8; text-decoration: none;
    background: rgba(38, 26, 15, 0.85);
    border: 2px solid #c9a04a;
    padding: 6px 14px;
    cursor: pointer;
  }
  #wishlist:hover {
    background: rgba(74, 50, 27, 0.95);
    border-color: #ffd25a;
    color: #ffe9b0;
  }
  /* the panel itself never eats aim clicks (pointer-events none) -
     only its minimize button and the restore icon are clickable */
  #controls {
    position: fixed; bottom: 16px; left: 16px;
    font-family: Silkscreen, monospace; font-size: 15px;
    letter-spacing: 1px;
    color: #e8dcc8;
    background: rgba(38, 26, 15, 0.75);
    border: 2px solid #6b5330;
    padding: 12px 16px;
    pointer-events: none;
  }
  #controls .rows {
    display: grid; grid-template-columns: auto auto;
    gap: 7px 28px;
  }
  #controls .rows b { color: #ffd25a; font-weight: normal; }
  #controls-min {
    position: absolute; top: -12px; right: -12px; width: 24px; height: 24px;
    font-family: Silkscreen, monospace; font-size: 14px; line-height: 1;
    color: #e8dcc8; background: #261a0f; border: 2px solid #c9a04a;
    padding: 0; cursor: pointer; pointer-events: auto;
  }
  #controls-min:hover { color: #ffe9b0; border-color: #ffd25a; }
  #controls-icon {
    position: fixed; bottom: 16px; left: 16px; width: 34px; height: 34px;
    display: none;
    font-family: Silkscreen, monospace; font-size: 18px; line-height: 1;
    color: #ffd25a; background: rgba(38, 26, 15, 0.85);
    border: 2px solid #c9a04a;
    padding: 0; cursor: pointer;
  }
  #controls-icon:hover { background: rgba(74, 50, 27, 0.95); color: #ffe9b0; }
  /* 1v1 invite UI, bottom center; the big center announce (MATCH
     STARTING, 3-2-1, FRIEND LEFT) as crisp DOM like the bullseye banner */
  #invitebox {
    position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
    z-index: 5;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
  }
  #invite {
    display: none;
    font-family: Silkscreen, monospace; font-size: 42px; letter-spacing: 3px;
    color: #e8dcc8;
    background: rgba(38, 26, 15, 0.85);
    border: 3px solid #c9a04a;
    padding: 18px 40px;
    cursor: pointer;
  }
  #invite.show { display: block; }
  #invite:hover {
    background: rgba(74, 50, 27, 0.95);
    border-color: #ffd25a;
    color: #ffe9b0;
  }
  #invite-status {
    display: none;
    font-family: Silkscreen, monospace; font-size: 18px; letter-spacing: 2px;
    color: #ffd25a; text-align: center;
    text-shadow: 2px 2px #141008, -2px 2px #141008,
      2px -2px #141008, -2px -2px #141008;
  }
  #invite-status.show { display: block; }
  #invite-link {
    display: none; width: min(70vw, 520px);
    font-family: Silkscreen, monospace; font-size: 15px;
    text-align: center;
    color: #e8dcc8; background: #141008;
    border: 2px solid #6b5330; padding: 8px 10px;
  }
  #invite-link.show { display: block; }
  #announce {
    position: fixed; top: 38%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: Silkscreen, monospace;
    font-size: min(9vw, 84px);
    color: #ffd25a; letter-spacing: 4px; white-space: nowrap;
    text-shadow: -4px 0 #141008, 4px 0 #141008, 0 -4px #141008, 0 4px #141008,
      3px 3px #141008, -3px 3px #141008, 3px -3px #141008, -3px -3px #141008;
    pointer-events: none;
    display: none;
  }
  #announce.show { display: block; animation: apop 0.2s ease-out; }
  @keyframes apop {
    from { transform: translate(-50%, -50%) scale(1.6); }
    to { transform: translate(-50%, -50%) scale(1); }
  }
  /* name gate: the first thing the page asks */
  #namegate {
    position: fixed; inset: 0; z-index: 8;
    background: rgba(7, 5, 3, 0.94);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 18px;
  }
  #namegate.hide { display: none; }
  #namegate img { width: min(38vw, 360px); }
  #namegate label {
    font-family: Silkscreen, monospace; font-size: 16px; letter-spacing: 2px;
    color: #ffd25a;
    text-shadow: 2px 2px #141008, -2px 2px #141008,
      2px -2px #141008, -2px -2px #141008;
  }
  #name-in {
    width: min(60vw, 300px);
    font-family: Silkscreen, monospace; font-size: 22px; letter-spacing: 2px;
    text-align: center; text-transform: uppercase;
    color: #ffe9b0; background: #141008;
    border: 2px solid #c9a04a; padding: 10px 12px;
    outline: none;
  }
  #name-in:focus { border-color: #ffd25a; }
  #name-go {
    font-family: Silkscreen, monospace; font-size: 18px; letter-spacing: 2px;
    color: #e8dcc8; background: rgba(38, 26, 15, 0.85);
    border: 2px solid #c9a04a; padding: 10px 26px; cursor: pointer;
  }
  #name-go:hover {
    background: rgba(74, 50, 27, 0.95);
    border-color: #ffd25a; color: #ffe9b0;
  }
  /* end-of-match results: a full-screen DIM with two separate panels -
     the narrow match+rematch box and the wishlist+trailer box */
  #results {
    position: fixed; inset: 0; z-index: 6;
    display: none;
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 20px;
    background: rgba(5, 3, 2, 0.72);
    padding: 20px;
  }
  #results.show { display: flex; }
  #results .rbox {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    background: rgba(20, 14, 8, 0.96);
    border: 2px solid #c9a04a;
    padding: 22px 28px;
  }
  #results-match { min-width: min(70vw, 250px); }
  #results .rrow {
    width: 100%;
    display: flex; justify-content: space-between; gap: 30px;
    font-family: Silkscreen, monospace; letter-spacing: 2px;
  }
  #results .rrow.first { font-size: 24px; color: #ffd25a; }
  #results .rrow.second { font-size: 17px; color: #b9ac96; }
  #rematch {
    margin-top: 6px;
    font-family: Silkscreen, monospace; font-size: 16px; letter-spacing: 1px;
    color: #e8dcc8; background: rgba(38, 26, 15, 0.85);
    border: 2px solid #c9a04a; padding: 8px 18px; cursor: pointer;
  }
  #rematch:hover:enabled {
    background: rgba(74, 50, 27, 0.95);
    border-color: #ffd25a; color: #ffe9b0;
  }
  #rematch:disabled { color: #8a7c64; border-color: #6b5330; cursor: default; }
  #rematch-status {
    font-family: Silkscreen, monospace; font-size: 12px; letter-spacing: 1px;
    color: #ffd25a; min-height: 14px;
  }
  #results .wl {
    font-family: Silkscreen, monospace; font-size: 14px; letter-spacing: 1px;
    color: #e8dcc8; text-decoration: none;
    background: rgba(38, 26, 15, 0.85);
    border: 2px solid #6b5330; padding: 7px 14px;
  }
  #results .wl:hover { border-color: #ffd25a; color: #ffe9b0; }
  /* the trailer embed is CHROME-FREE: the iframe never gets pointer
     events (YouTube's hover UI can never appear), our own tiny controls
     fade in on hover instead */
  .yt-wrap { position: relative; }
  .yt-wrap iframe {
    display: block; border: 2px solid #6b5330;
    width: min(84vw, 680px); aspect-ratio: 16 / 9;
    pointer-events: none;
  }
  .yt-ui {
    position: absolute; right: 8px; bottom: 8px;
    display: none; gap: 8px;
  }
  .yt-wrap:hover .yt-ui { display: flex; }
  .yt-ui button, .yt-ui a {
    font-family: Silkscreen, monospace; font-size: 11px; letter-spacing: 1px;
    color: #e8dcc8; background: rgba(38, 26, 15, 0.92);
    border: 2px solid #6b5330; padding: 5px 10px;
    cursor: pointer; text-decoration: none;
  }
  .yt-ui button:hover, .yt-ui a:hover {
    border-color: #ffd25a; color: #ffe9b0;
  }
  /* touch-only devices get a full-screen note: the demo needs kb+mouse */
  #mobile-note {
    position: fixed; inset: 0; z-index: 10;
    background: #070503;
    display: none;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 18px; padding: 24px; text-align: center;
  }
  #mobile-note img { width: min(80vw, 400px); }
  #mobile-note .big {
    font-family: Silkscreen, monospace; font-size: 26px; letter-spacing: 2px;
    color: #ffd25a;
    text-shadow: 2px 2px #141008, -2px 2px #141008,
      2px -2px #141008, -2px -2px #141008;
  }
  #mobile-note a {
    font-family: Silkscreen, monospace; font-size: 16px; letter-spacing: 1px;
    color: #e8dcc8; text-decoration: none;
    background: rgba(38, 26, 15, 0.85);
    border: 2px solid #c9a04a;
    padding: 10px 20px;
  }
  #mobile-trailer iframe {
    display: block;
    width: min(86vw, 420px); aspect-ratio: 16 / 9;
  }
  @media (hover: none) and (pointer: coarse) {
    #mobile-note { display: flex; }
  }
