:root { --site-purple: #5433be; --site-pink: #e624af; }
* { box-sizing: border-box; cursor: url("cursor.png") 12 0, auto; }
    body {
      image-rendering: pixelated;
      image-rendering: crisp-edges;
      background: #0e0e0e url("dqwdqdq.PNG") repeat;
      background-size: 256px 256px;
      color: var(--site-pink);
      font-family: 'Times New Roman', serif;
      text-align: center;
      font-size: 28px;
      margin: 0;
      overflow-x: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      min-width: 0;
    }

    h1 {
      font-size: 80px;
      text-shadow: 10px 10px var(--site-purple);
      letter-spacing: 4px;
      margin: 40px 0 0 0;
      z-index: 20;
      position: relative;
    }

    .layout-wrapper {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      min-height: 70vh;
      gap: 20px;
      padding: 20px;
      width: 100%;
    }

    .model-container {
      width: 400px;
      height: 400px;
      image-rendering: pixelated;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: visible;
    }

    #canvas-bottom {
      width: 600px;
      height: 600px;
      margin-top: -50px;
      margin-bottom: 50px;
    }

    .box {
      border: 2px solid var(--site-pink);
      padding: 30px;
      width: min(100%, 814px);
      background: var(--site-purple);
      box-shadow: 0 0 20px rgba(91, 60, 255, 0.4);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 30px;
      flex-shrink: 0; min-width: 0;
      z-index: 10;
    }

    .announcement-box, .visitor-box, .pink-box {
      width: 80%;
      box-sizing: border-box;
    }

    .visitor-box {
      font-family: 'Times New Roman', serif;
      font-size: 20px;
      color: var(--site-pink);
      border: 2px solid var(--site-pink);
      padding: 10px 20px;
      font-weight: bold;
      text-transform: lowercase;
    }

    .announcement-box {
      border: 2px solid var(--site-pink);
      padding: 20px 40px;
      font-size: 22px;
      font-weight: bold;
      color: var(--site-pink);
      text-transform: lowercase;
    }

    .section-container { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }

    .pink-box-label {
      font-size: 30px;
      color: var(--site-pink);
      text-transform: lowercase;
      font-weight: bold;
      letter-spacing: 1px;
    }

    .pink-box {
      border: 2px solid var(--site-pink);
      padding: 20px 40px;
      display: flex;
      flex-direction: column;
      align-items: center;
      background: rgba(230, 36, 175, 0.05);
    }

    .links-row { display: flex; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 20px; }

    a {
      background: transparent; color: var(--site-pink); border: 2px solid var(--site-pink);
      padding: 10px 20px; font-family: 'Times New Roman', serif;
      font-size: 20px; font-weight: bold; text-decoration: none;
      text-transform: lowercase; transition: 0.2s; display: inline-block;
    }
    a:hover { background: var(--site-pink); color: var(--site-purple); }

    .button-area { display: flex; flex-direction: row; align-items: center; gap: 15px; }
    .ascii-pointer { font-family: monospace; font-size: 16px; color: var(--site-pink); text-align: left; line-height: 1.2; }

    .bg-btn {
      width: 128px; height: 128px; border: 2px solid var(--site-pink);
      padding: 0; background-size: cover; background-repeat: no-repeat;
      background-position: center; image-rendering: pixelated; cursor: pointer;
    }

    .radio-btn {
      background: transparent; color: var(--site-pink); border: 2px solid var(--site-pink);
      padding: 10px 20px; font-family: 'Times New Roman', serif;
      font-size: 20px; font-weight: bold; cursor: pointer;
      text-transform: lowercase; transition: 0.2s;
      touch-action: manipulation;
    }
    .radio-btn:hover { background: var(--site-pink); color: var(--site-purple); }

    #radio-status, #listener-count, #current-track {
      margin-top: 10px;
      font-size: 16px;
      font-family: 'Times New Roman', serif;
      text-transform: lowercase;
    }

    @keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

/* Fit the screen without sanding off the edges. */
h1 { font-size: clamp(34px, 7vw, 80px); max-width: 100%; overflow-wrap: anywhere; }
a, button { min-height: 44px; touch-action: manipulation; }
a { overflow-wrap: anywhere; max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 3px dashed #fff; outline-offset: 4px; }
[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 24px 12px 0; }
.site-nav a { background: var(--site-purple); }
.layout-wrapper > .model-container { flex: 1 1 0; min-width: 0; max-width: 400px; align-self: flex-start; }
.model-container canvas { display: block; max-width: 100%; }
.model-container canvas { touch-action: none; }
canvas:focus-visible { outline: 3px dashed #fff; outline-offset: -4px; }
#canvas-bottom { max-width: 100%; }
.links-row { max-width: 100%; }
#volume-control { flex-wrap: wrap; }

.project-page { padding: 0 16px 32px; }
.blog { width: min(100%, 960px); margin-top: 28px; text-align: left; overflow-wrap: anywhere; }
.project-post time { font-size: 18px; }
.project-post p { font-size: 22px; line-height: 1.45; }
.project-post { background: var(--site-purple); border: 2px solid var(--site-pink); padding: 24px; margin: 0 0 24px; }
.project-post h2 { margin: 12px 0 20px; font-size: 32px; }
.screenshot { margin: 24px 0; width: 100%; text-align: left; }
.screenshot-small { width: min(100%, 440px); }
.screenshot-right { width: min(100%, 600px); margin-left: 0; }
.screenshot > a { display: block; width: fit-content; max-width: 100%; padding: 0; border: 0; background: transparent; }
.screenshot > a:hover { background: transparent; }
.screenshot img { display: block; width: auto; max-width: 100%; height: auto; }
.screenshot figcaption { font-size: 18px; margin: 8px 0; }
.screenshot video { display: block; width: 100%; max-height: 600px; }
.screenshot audio { display: block; width: min(100%, 520px); min-height: 44px; }
.project-post p a, .project-post li a { display: inline; border: 0; padding: 0; font-size: inherit; text-transform: none; text-decoration: underline; }
.project-post li { font-size: 22px; line-height: 1.45; }
.model-viewer { width: min(100%, 600px); height: clamp(240px, 50vw, 480px); position: relative; background: transparent; }
.model-viewer canvas { display: block; max-width: 100%; touch-action: none; }
.model-load { display: flex; flex-direction: column; width: 100%; height: 100%; position: absolute; inset: 0; border: 0; padding: 0; background: transparent; color: #ffb4ea; font: bold 22px 'Times New Roman', serif; }
.model-load img { height: calc(100% - 48px); object-fit: contain; }
.model-load span { display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; }
.blog-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; width: min(100%, 960px); }
.project-page [hidden] { display: none !important; }

@media (max-width: 1200px) {
  .layout-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; max-width: 854px; gap: 12px; }
  .layout-wrapper > .model-container { width: min(100%, 220px); height: clamp(120px, 25vw, 220px); max-width: none; justify-self: center; }
  #canvas-left { grid-column: 1; grid-row: 1; }
  #canvas-right { grid-column: 2; grid-row: 1; }
  .box { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  #canvas-bottom { width: min(100%, 450px); height: auto; aspect-ratio: 1; margin-top: 0; margin-bottom: 20px; }
}
@media (max-width: 600px) {
  h1 { letter-spacing: 1px; margin-top: 24px; text-shadow: 4px 4px var(--site-purple); }
  .layout-wrapper { padding: 12px; }
  .box { padding: 18px 12px; gap: 24px; }
  .announcement-box, .visitor-box, .pink-box { width: 100%; padding: 14px 10px; }
  .links-row { gap: 10px; }
  .links-row a { padding: 10px 12px; }
  .button-area { gap: 10px; }
  .project-page { padding-inline: 12px; }
  .project-post { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.site-preferences { width: min(814px, calc(100% - 32px)); padding: 16px; margin: 16px auto 32px; background: var(--site-purple); border: 2px solid var(--site-pink); font-size: 20px; }
.site-preferences p { margin: 0 0 12px; }
.site-preferences label { display: inline-flex; align-items: center; gap: 8px; margin: 4px; }
.site-preferences input, .site-preferences button { min-height: 44px; max-width: 100%; border: 2px solid var(--site-pink); border-radius: 0; padding: 8px; background: var(--site-purple); color: var(--site-pink); font: bold 20px 'Times New Roman', serif; }
.site-preferences input { width: 110px; }
.site-preferences button { margin: 4px; }
.site-preferences :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.site-preferences #color-status { margin: 8px 0 0; }
.screenshot img { image-rendering: pixelated; }
.screenshot figcaption p, .screenshot figcaption li { font-size: inherit; }
.screenshot figcaption h1 { position: static; margin: 12px 0; font-size: 28px; letter-spacing: normal; text-shadow: none; }
.screenshot figcaption h2 { font-size: 24px; }
.screenshot figcaption h3 { font-size: 21px; }
#site-colors { gap: 12px; font-size: 20px; }
.color-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; max-width: 100%; }
.color-row label { min-width: 55px; text-align: left; }
.color-row input { min-height: 44px; min-width: 0; border: 2px solid var(--site-pink); border-radius: 0; padding: 6px; background: var(--site-purple); color: var(--site-pink); font: bold 20px 'Times New Roman', serif; }
.color-row input[type=text] { width: 110px; }
.color-row input[type=color] { width: 48px; padding: 2px; }
#color-status, #background-status { font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.background-controls { gap: 12px; }
.upload-background { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.upload-background input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-background:focus-within { outline: 3px dashed currentColor; outline-offset: 4px; }
.screenshot, .screenshot img { border: 0; box-shadow: none; outline: 0; background: transparent; }
.screenshot > a, .screenshot > a:hover { border: 0; box-shadow: none; background: transparent; }

.contact-page > .box { margin: 28px 16px 32px; width: min(814px, calc(100% - 32px)); }
