/* GPU made this page himself. In Notepad. Do not fix it. */
@font-face { font-family: "Comic Neue"; src: url("/fonts/comic neue 400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("/fonts/comic neue 700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Anton"; src: url("/fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "VT323"; src: url("/fonts/vt323.woff2") format("woff2"); font-display: swap; }

:root {
  --green: #76b900;      /* NVIDIA green */
  --black: #000000;
  --beige: #ece9d8;      /* the plastic of his monitor and every window on it */
  --blue: #0a5fe0;       /* window title bars */
  --navy: #000080;
  --yellow: #fff200;
  --red: #ff0000;
  --link: #0000ee;
  --comic: "Comic Sans MS", "Comic Neue", cursive;
  --times: "Times New Roman", Times, serif;
  --meme: Impact, "Anton", "Arial Narrow Bold", sans-serif;
  --led: "VT323", "Courier New", monospace;
  --ui: Tahoma, Verdana, Geneva, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--green) url("/img/tile.png"); }
body { margin: 0; font-family: var(--times); font-size: 20px; line-height: 1.35; color: var(--black); }
@media (pointer: fine) { body, a, button { cursor: url("/img/can.png") 2 2, auto; } }
img, video { max-width: 100%; height: auto; }
a { color: var(--link); }
:focus-visible { outline: 4px dashed var(--yellow); outline-offset: 2px; }
b { font-weight: 700; }

/* ---------- the door ---------- */
#door { position: fixed; inset: 0; z-index: 50; background: var(--black); color: var(--green); display: flex; align-items: center; justify-content: center;
        text-align: center; overflow: auto; padding: 16px; }
#door[hidden] { display: none; }
.door-in { max-width: 640px; }
.door-name { width: min(560px, 92vw); }
.door-head { width: 150px; display: block; margin: 6px auto; animation: wobble 1.1s steps(2) infinite; }
.door-say { font-family: var(--comic); font-size: 22px; color: var(--yellow); }
.door-fire { display: block; margin: 12px auto 0; width: 100%; image-rendering: pixelated; }

/* ---------- the running line ---------- */
.ticker { background: var(--black); color: var(--yellow); font-family: var(--comic); font-weight: 700; font-size: 20px; overflow: hidden; white-space: nowrap;
          border-bottom: 4px ridge var(--green); }
.ticker-run { display: inline-block; padding: 6px 0; animation: run 38s linear infinite; }
.ticker-run span { margin: 0 14px; }
@keyframes run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- the page ---------- */
.page { width: min(860px, 100% - 16px); margin: 14px auto 60px; background: var(--black); border: 8px ridge var(--green); padding: 12px; text-align: center; }
.top h1 { margin: 6px 0 0; }
.top h1 img { width: min(680px, 100%); }
.sub { font-family: var(--comic); color: var(--yellow); font-size: 22px; margin: 4px 0 10px; }
.inl { vertical-align: middle; }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; align-items: center; }
.cat { background: none; border: 0; padding: 0; display: block; }
.cat img { display: block; width: 100%; }
.cat:active img, .cat.pump img { transform: scale(1.06) rotate(-2deg); }
.hero-side { color: var(--green); font-family: var(--comic); }
.tick { width: 100%; }
.say { font-family: var(--meme); font-size: clamp(30px, 6vw, 54px); line-height: 1; color: #fff; margin: 8px 0; text-shadow: 3px 3px 0 var(--blue); }
.reps { font-family: var(--led); font-size: 34px; color: var(--green); margin: 4px 0; }
.hits { font-size: 16px; color: #fff; }
.odo { font-family: var(--led); font-size: 28px; background: #111; color: var(--yellow); border: 3px inset #888; padding: 0 8px; letter-spacing: 4px; }

.rule { display: block; width: 100%; height: 44px; object-fit: cover; object-position: bottom; image-rendering: pixelated; margin: 14px 0; }

/* ---------- boxes, each a different colour because he could not decide ---------- */
.box { border: 6px ridge var(--yellow); padding: 14px; margin: 14px 0; }
.box h2, .tracker h3 { font-family: var(--comic); font-size: clamp(26px, 5vw, 38px); margin: 0 0 10px; }
.box.black { background: var(--black); color: #fff; border-color: var(--green); }
.box.white { background: #fff; color: var(--black); border-color: var(--blue); }
.box.navy { background: var(--navy); color: var(--yellow); border-color: var(--red); font-family: var(--comic); }
.box.navy b { color: #fff; }
.box.ca { background: var(--yellow); color: var(--black); border-color: var(--red); }
.box h2.second { margin-top: 22px; }
.rainbow { background: linear-gradient(90deg, #ff0000, #ff9a00, #fff200, #76b900, #00b7ff, #b400ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.box.black .rainbow, .box.white .rainbow { display: inline-block; }
.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@keyframes wobble { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

.ca-line { margin: 6px 0 12px; }
.ca-line code { font-family: var(--led); font-size: clamp(20px, 4.2vw, 30px); background: #fff; border: 3px inset #888; padding: 4px 10px; display: inline-block; max-width: 100%; overflow-wrap: anywhere; }

/* ---------- buttons, in the grey every button used to be ---------- */
.btn, .key, .bigbtn { font-family: var(--ui); font-weight: 700; font-size: 17px; color: var(--black); background: #d4d0c8; border: 3px outset #fff; padding: 8px 14px;
       display: inline-block; text-decoration: none; margin: 4px; }
.btn:active, .key:active, .bigbtn:active { border-style: inset; }
.btn.buy { background: var(--green); }
.btn.off, .btn:disabled { color: #777; background: #c4c0b8; }
.bigbtn { font-family: var(--meme); font-weight: 400; font-size: 34px; background: var(--green); padding: 12px 26px; border-width: 5px; letter-spacing: 1px; }
.linkbtn { background: none; border: 0; color: #9bd; text-decoration: underline; font-family: var(--times); font-size: 17px; padding: 6px; }

/* ---------- windows ---------- */
.win { background: var(--beige); border: 3px solid var(--blue); border-radius: 8px 8px 0 0; margin: 14px 0; text-align: left; box-shadow: 6px 6px 0 rgba(0, 0, 0, .55); }
.win-bar { background: linear-gradient(#0a5fe0, #2a7bf5 12%, #0450d0 50%, #0345bd 90%, #02339a); color: #fff; font-family: var(--ui); font-weight: 700; font-size: 15px;
           padding: 6px 8px; display: flex; align-items: center; gap: 8px; border-radius: 5px 5px 0 0; text-shadow: 1px 1px 1px #012; }
.win-bar > span:nth-child(2) { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-ico { width: 16px; height: 16px; background: var(--green); border: 1px solid #fff; border-radius: 2px; flex: none; }
.win-btns { display: flex; gap: 3px; flex: none; }
.win-btns i { font-style: normal; width: 22px; height: 20px; border: 1px solid #fff; border-radius: 3px; background: linear-gradient(#3d86f7, #1556d8); font-size: 12px;
              display: flex; align-items: center; justify-content: center; }
.win-btns i.x { background: linear-gradient(#e8785c, #c8371c); }
.win-body { padding: 10px; font-family: var(--ui); font-size: 16px; }
.win-body video { display: block; width: 100%; background: #000; border: 3px inset #888; aspect-ratio: 16 / 9; }

/* ---------- the tracker ---------- */
.tracker { text-align: center; }
.tr-head { margin: 0 0 8px; }
.tr-head img { width: min(620px, 100%); }
.led { background: #050a00; border: 5px inset #888; padding: 12px; color: var(--green); font-family: var(--led); }
.led-row.state { font-size: 34px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; color: var(--yellow); min-height: 44px; }
.led-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.led-grid:empty { display: none; }
.cell { border: 2px solid #1d3a00; padding: 8px 6px; background: #0a1400; }
.cell .k { font-family: var(--ui); font-size: 12px; font-weight: 700; color: #b9e36a; letter-spacing: .5px; }
.cell .v { font-size: clamp(30px, 6.4vw, 50px); line-height: 1.05; color: #a6ff00; text-shadow: 0 0 8px rgba(118, 185, 0, .8); overflow-wrap: anywhere; }
.cell .s { font-size: 20px; color: #6f9c2a; }
.cell.big { grid-column: 1 / -1; }
.cell.big .v { font-size: clamp(40px, 9vw, 74px); }
.tracker h3 { font-size: 24px; margin: 16px 0 6px; color: var(--navy); }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; margin: 0 auto; }
.feed { width: 100%; font-family: var(--led); font-size: 22px; background: #fff; }
.feed th { font-family: var(--ui); font-size: 12px; background: var(--navy); color: #fff; padding: 5px; }
.feed td { border: 1px solid #999; padding: 3px 8px; text-align: center; white-space: nowrap; }
.feed tr:nth-child(even) td { background: #eef7d8; }
.wallet { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.wallet label { width: 100%; font-weight: 700; }
.wallet input { flex: 1 1 280px; min-width: 0; font-family: var(--led); font-size: 22px; padding: 6px; border: 3px inset #888; }
.wallet-out { font-family: var(--led); font-size: 24px; margin-top: 8px; min-height: 28px; color: var(--navy); }
.wallet-out .bad { color: var(--red); }
.rules { text-align: left; background: #fffbd0; border: 3px inset #888; padding: 4px 12px 8px; margin-top: 14px; font-family: var(--comic); font-size: 18px; color: #000; }
.rules h3 { text-align: center; margin: 8px 0 4px; }
.rules ul { margin: 0; padding-left: 22px; }
.rules li { margin: 5px 0; }
.tr-note { font-size: 13px; color: #444; margin: 12px 0 0; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; text-align: left; font-family: var(--comic); font-size: 21px; }
.about p { margin: 0 0 10px; }
.frame { border: 6px ridge var(--green); }
.gifs img { margin: 4px; border: 4px outset #fff; width: 31%; }

/* ---------- the song player ---------- */
.amp { background: #23262d; color: #a6ff00; }
.amp-say { color: #fff; font-weight: 700; margin: 0 0 8px; text-align: center; }
.amp-screen { background: #000; border: 3px inset #666; font-family: var(--led); font-size: 30px; padding: 4px 10px; display: flex; justify-content: space-between; gap: 10px; }
.amp-screen span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#amp-seek { width: 100%; margin: 8px 0; accent-color: var(--green); }
.amp-keys { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.key { padding: 6px 12px; margin: 0; }
.key.wide { min-width: 96px; }
.vol { margin-left: auto; font-size: 13px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 6px; }
.vol input { accent-color: var(--green); width: 110px; }
.amp-list { background: #000; border: 3px inset #666; margin: 8px 0 0; padding: 6px 6px 6px 36px; font-family: var(--led); font-size: 24px; }
.amp-list li { padding: 1px 4px; }
.amp-list button { background: none; border: 0; color: inherit; font: inherit; padding: 2px; text-align: left; }
.amp-list li.on { background: var(--navy); color: #fff; }

/* ---------- fits ---------- */
.fits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.fits figure { margin: 0; background: #fff; color: #000; border: 4px outset #ddd; padding: 4px; font-family: var(--comic); font-size: 14px; }
.fits img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.fits figcaption { padding: 4px 2px 2px; }
.fits figure.on { border-color: var(--red); border-style: solid; background: var(--yellow); transform: rotate(-2deg) scale(1.04); }
.fit-said { font-family: var(--comic); color: var(--yellow); }

/* ---------- tables ---------- */
.day { font-family: var(--comic); font-size: 19px; text-align: left; border: 4px outset #ccc; }
.day th { background: var(--green); padding: 5px 10px; border: 2px inset #ccc; white-space: nowrap; }
.day td { padding: 5px 10px; border: 2px inset #ccc; background: #fffbd0; }
.stats th { background: var(--blue); color: #fff; }

.how { text-align: left; display: inline-block; margin: 0; padding-left: 30px; font-size: 22px; }
.how li { margin: 6px 0; }
.links .btn { min-width: min(420px, 100%); }
.badges img { margin: 3px; image-rendering: pixelated; }

.foot { color: #fff; font-family: var(--comic); font-size: 17px; padding: 10px 0 0; }
.foot .small { font-family: var(--times); font-size: 14px; color: #bbb; }

/* ---------- the pop up and the head that will not leave ---------- */
.pop { position: fixed; z-index: 40; left: 50%; top: 30%; transform: translateX(-50%); width: min(340px, 92vw); margin: 0; }
.pop[hidden] { display: none; }
.pop-body { text-align: center; }
.pop-body p { margin: 6px 0; display: flex; gap: 10px; align-items: center; justify-content: center; font-weight: 700; }
#bouncer { position: fixed; left: 0; top: 0; z-index: 30; width: 96px; pointer-events: none; will-change: transform; }
#bouncer[hidden] { display: none; }
.spark { position: fixed; z-index: 35; pointer-events: none; color: var(--yellow); font-size: 18px; animation: spark .6s linear forwards; text-shadow: 0 0 4px #000; }
@keyframes spark { to { transform: translateY(26px) rotate(120deg); opacity: 0; } }
.shake { animation: shake .28s linear; }
@keyframes shake { 25% { transform: translate(5px, -4px); } 50% { transform: translate(-5px, 4px); } 75% { transform: translate(4px, 3px); } }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  body { font-size: 18px; }
  .page { border-width: 5px; padding: 8px; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { order: -1; }
  .tick { width: 70%; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about img { margin: 0 auto; width: 200px; }
  .fits { grid-template-columns: repeat(2, 1fr); }
  .gifs img { width: 100%; margin: 4px 0; }
  .led-grid { grid-template-columns: 1fr; }
  .feed { font-size: 18px; }
  .feed td { padding: 3px 5px; }
  .feed th { font-size: 10px; padding: 4px 2px; }
  .vol { margin-left: 0; width: 100%; }
  .day { font-size: 16px; }
  #bouncer { width: 64px; }
}

/* ---------- for people who asked their computer for less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker-run, .blink, .door-head, .shake { animation: none; }
  #bouncer { display: none; }
}
