:root {
  --cursor-default: url('images/face cursor.png') 16 16, auto;
  --font-ui: "Bitcount Grid Single Ink", system-ui;
  --color-text: #111;
  --color-bg: #000;
  --color-panel-light: rgba(255, 255, 255, 0.1);
  --color-panel-dark: rgba(0, 0, 0, 0.35);
  --color-border: rgba(255, 255, 255, 0.12);
  --blue-accent: #2997ff;
  --button-card-scale: 1;
}

/* Default cursor for your app */
body,
#canvas,
#imgOrderContainer {
  cursor: var(--cursor-default);
}

/* Cursor when hovering over selectable items */
.imgOrderItem:hover {
  cursor: url('images/face cursor.png') 16 16, pointer;
}

/* Cursor when actively selecting (dragging or mousedown) */
body.selecting, #canvas.selecting, #imgOrderContainer.selecting {
  cursor: url('images/face cursor.png') 16 16, grab;
}



/* =========================================================
   GLOBAL STYLES
========================================================= */

body {
  cursor: var(--cursor-default);
  margin: 0;
  padding: 72px 0 0 0;
  font-family: var(--font-ui);
  color: var(--color-text);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  text-align-last: left;
  line-height: 1.6;
}

body.buttonedit-page {
  overflow: hidden;
  height: 100vh;
}

body.buttonedit-page #main.buttonedit {
  border-radius: 0;
  height: calc(100vh - 72px);
  overflow: hidden;
}

body.buttonedit-page .buttonedit-stage {
  overflow: hidden;
}

body.buttonedit-page .buttonedit #controls,
body.buttonedit-page .buttonedit-arena,
body.buttonedit-page .buttonedit-arena .canvas-core,
body.buttonedit-page .buttonedit-stage canvas,
body.buttonedit-page .effect-panel,
body.buttonedit-page .effects-grid,
body.buttonedit-page .buttonedit-stage .effect-card,
body.buttonedit-page .buttonedit-stage .effect-btn,
body.buttonedit-page .buttonedit-stage .effect-slider {
  border-radius: 0 !important;
}

.app-description {
  margin: 10px 0 18px;
  color: #dcdcdc;
  font-size: 0.95rem;
  line-height: 1.5;
}

.app-year {
  position: fixed;
  bottom: 16px;
  left: 16px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  pointer-events: none;
  z-index: 50;
}

@media (max-width: 640px) {
  .app-year {
    position: static;
    margin: 32px 0 0;
    text-align: center;
  }
}



/* =========================================================
   MAIN LAYOUT
========================================================= */

#main {
  display: flex;
  align-items: stretch;
  align-content: stretch;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: auto;
  gap: 24px;
  padding: 0 24px 24px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  #main {
    flex-direction: column;
    padding: 0 16px 24px;
  }
}

/* Sidebar controls */
#controls {
  flex: 0 0 330px;
  width: min(100%, 360px);
  min-height: 0;
  padding: 20px;
  background: none;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  box-sizing: border-box;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}

#controls label,
#controls button,
#controls input[type=range],
#controls input[type=number] {
  width: 100%;
}

@media (max-width: 1024px) {
  #controls {
    max-height: none;
  }
}

@media (max-width: 900px) {
  #controls {
    flex: none;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    overflow: visible;
  }
}

.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.button-row button {
  flex: 1;
}

.archive-wrapper {
  width: 100%;
  max-width: none;
  margin: clamp(48px, 10vw, 120px) 0 80px;
  padding: 0 clamp(24px, 6vw, 96px);
  color: #fff;
  box-sizing: border-box;
}

.archive-hero {
  text-align: left;
  max-width: 900px;
  margin: 0 0 clamp(32px, 6vw, 64px);
}

.archive-hero h1 {
  margin: 0 0 8px 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.archive-hero .lede {
  max-width: 60ch;
  color: #d8d8d8;
  line-height: 1.6;
  margin-top: 0;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.3rem;
  color: var(--blue-accent);
  margin-bottom: 12px;
}

.archive-list {
  margin-top: 32px;
  list-style: none;
  padding: 0;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  line-height: 1.6;
  text-align: left;
}

.archive-list li {
  padding: 18px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-list li:last-child {
  border-bottom: none;
}

.archive-details {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

@media (max-width: 720px) {
  .archive-details {
    flex-direction: column;
  }

  .archive-preview {
    width: 100%;
    height: auto;
    max-height: 240px;
  }
}

.archive-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  margin-bottom: 4px;
}

.archive-year {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.archive-list strong {
  color: #fff;
  display: block;
  margin-bottom: 6px;
}

.archive-list p {
  margin: 0 0 10px;
  color: #d1d1d1;
}

.archive-list a {
  color: var(--blue-accent);
  font-weight: 600;
  text-decoration: none;
}

.archive-list a:hover {
  text-decoration: underline;
}

.archive-preview {
  width: 120px;
  height: 90px;
  border-radius: 0;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

.webcam-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Canvas stage */
#canvasArea {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  min-height: 0;
}

@media (max-width: 900px) {
  #canvasArea {
    padding: 0;
  }
}

/* Interactive elements */
button,
input[type=file],
input[type=number],
#ui button {
  appearance: none;
  border: none;
  outline: none;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 12px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #fdfdfd, #e8e8e8);
  color: #111;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

button,
#ui button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Hover — subtiel lichtglanzend */
button:hover,
input[type=file]:hover,
input[type=number]:hover,
#ui button:hover {
  background: linear-gradient(270deg, var(--blue-accent), #ffffff, var(--blue-accent), #ffffff);
  background-size: 400% 400%;
  animation: gradientMove 4s ease infinite;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


/* Actief (klik-effect) */
button:active,
input[type=file]:active,
input[type=number]:active,
#ui button:active {
  background: linear-gradient(180deg, var(--blue-accent), var(--blue-accent));
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 1px 1px rgba(255, 255, 255, 0.6);
  transform: translateY(0);
}

/* Focus glow  */
button:focus-visible,
#ui button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0, 122, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.05);
}


/* Input[type=file] */
input[type=file] {
  background: linear-gradient(180deg, #fefefe, #e9e9e9);
  border-radius: 10px;
  padding: 8px 12px;
  color: #333;
}

/* Input[type=number] */
input[type=number] {
  background: linear-gradient(180deg, #fdfdfd, #f0f0f0);
  border: 1px solid #ddd;
  padding: 8px;
  width: 80px;
  text-align: center;
  border-radius: 8px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
input[type=number]:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
}


  
/* =========================================================
   CANVAS / VIDEO ELEMENTS
========================================================= */

#canvas,
#asciiCanvas{
      background: black;
      display: block;
      object-fit: contain;
    }

#canvas{
      width: 100%;
      height: auto;
      max-width: 100%;
      max-height: 100%;
      margin: 0 auto;
    }

#asciiCanvas{
      flex: 1;
      width: 100%;
      height: 100%;
    }

#video {
  position: fixed;
  bottom: 10px;
  left: 10px;
  width: 240px;
  height: 180px;
  border: 2px solid #fff;
  background: #000;
  z-index: 100;
}

@media (max-width: 700px) {
  #video {
    position: static;
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 16px auto;
  }
}

/* =========================================================
   IMAGE ORDER CONTAINER
========================================================= */

#imgOrderContainer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: min(480px, 50vh);
  overflow-y: auto;
}

.imgOrderItem {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px;
  border-radius: 4px;
  cursor: move;
}

.imgOrderItem img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}


/* =========================================================
   SLIDERS
========================================================= */

input[type=range],
.slider {
  width: 100%;
  height: 34px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  padding: 8px 0;
  accent-color: var(--blue-accent);
}

input[type=range]:focus-visible,
.slider:focus-visible {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track,
.slider::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

input[type=range]::-webkit-slider-thumb,
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue-accent);
  margin-top: -9px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type=range]:active::-webkit-slider-thumb,
.slider:active::-webkit-slider-thumb {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

input[type=range]::-moz-range-track,
.slider::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

input[type=range]::-moz-range-progress,
.slider::-moz-range-progress {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-accent), #6ec1ff);
}

input[type=range]::-moz-range-thumb,
.slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--blue-accent);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type=range]:active::-moz-range-thumb,
.slider:active::-moz-range-thumb {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}


/* =========================================================
   TYPOGRAPHY & CONTENT
========================================================= */

main {
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 2.5rem);
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

h1 {
  font-weight: 600;
  font-family: "Bitcount Grid Single Ink", system-ui;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
h2 {
  display:flex; 
  flex-wrap:wrap; 
  gap:20px; 
  justify-content:center; 
  padding:20px; 
  font-weight: 600;
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  color: #fff;
  font-family: "Bitcount Grid Single Ink", system-ui;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

/* =========================================================
   HOME GRID
========================================================= */

.app-grid-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(32px, 6vw, 96px) clamp(16px, 5vw, 80px) clamp(64px, 10vw, 140px);
  box-sizing: border-box;
}

.home-hero {
  text-align: left;
  color: #fff;
  max-width: 900px;
  margin: 0 0 clamp(32px, 6vw, 56px);
}

.home-hero .eyebrow--brand {
  color: var(--blue-accent);
}

.home-hero h1 {
  font-size: clamp(2.5rem, 8vw, 3.8rem);
  margin: 0 0 0.75rem;
}

.home-hero .home-lede {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  max-width: 640px;
  line-height: 1.5;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 4vw, 32px);
  margin: 0;
  padding: 0;
  width: 100%;
}

.app-card {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 24px;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #111 center / cover no-repeat;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.7) 100%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.app-card__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: text-shadow 0.2s ease, color 0.2s ease;
}

.app-card__meta {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.app-card--archive {
  background: black;
  border-style: dashed;
  border-color: rgba(255,255,255,0.4);
}

.app-card--archive::after {
  opacity: 0.15;
}

.app-card:hover .app-card__label {
  color: #ffffff;
  text-shadow:
    -4px -4px 0 #fff,
     0   -4px 0 #fff,
     4px -4px 0 #fff,
    -4px  0   0 #fff,
     4px  0   0 #fff,
    -4px  4px 0 #fff,
     0    4px 0 #fff,
     4px  4px 0 #fff,
     0    0   6px rgba(0,0,0,0.45);
}

.home-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #dcdcdc;
  padding: 48px 0;
  font-size: 1rem;
}

@media (hover: hover) {
  .app-card:hover {
    transform: translateY(-6px);
    border-color: rgba(41, 151, 255, 0.7);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.45);
    font-size: larger;
  }

  .app-card:hover::after {
    opacity: 0.2;
  }
}

@media (max-width: 520px) {
  .app-card {
    aspect-ratio: 4 / 5;
    padding: 20px;
  }
}



/* Figures */
figure img {
  max-width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


/* =========================================================
   BUTTON EDITOR LAYOUT
========================================================= */

#main.buttonedit {
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding: 24px;
  height: calc(100vh - 70px);
}

.buttonedit #controls {
  width: clamp(260px, 30vw, 360px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}

.buttonedit-controls h1 {
  margin: 0 0 6px;
  font-size: 2rem;
  color: #fff;
}

.buttonedit-controls .app-description {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.75);
}

.control-stack {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.control-stack button {
  width: 100%;
}

.control-block {
  width: 100%;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-block label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: space-between;
}

.control-block input[type=range] {
  width: 100%;
}

.control-toggle {
  width: 100%;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.control-toggle input {
  accent-color: var(--blue-accent);
}

.control-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.button-lab__indicator,
.button-lab__helper {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.button-lab__indicator strong {
  margin-left: 6px;
  color: #fff;
}

.buttonedit-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 12px;
}

.buttonedit-arena {
  width: 100%;
  min-height: min(85vh, 760px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #000;
  box-shadow: 0 45px 90px rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(360px, 720px) minmax(220px, 300px);
  gap: 24px;
  align-items: start;
  justify-items: center;
  transition: box-shadow 0.25s ease, border 0.25s ease;
}

.buttonedit-arena.arena-muted {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.buttonedit-arena .canvas-core {
  border-radius: 0;
  flex: 1;
  max-width: 720px;
  position: relative;
  padding: 24px;
  border-radius: 28px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  z-index: 2;
  justify-self: center;
}

.buttonedit-stage canvas {
  border-radius: 0;
  width: min(100%, 640px);
  height: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.canvas-caption {
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  margin-bottom: 12px;
}

.effect-panel {
  border-radius: 0;
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(6, 9, 14, 0.92);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  max-height: 100%;
}

.effect-panel--left,
.effect-panel--right {
  align-self: stretch;
}

.effects-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
  max-height: calc(100vh - 220px);
  overscroll-behavior: contain;
}

.buttonedit-stage .effect-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform-origin: center;
  width: 100%;
}

.buttonedit-stage .effect-btn {
  border-radius: 0;
  width: 100%;
  min-height: 72px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: left;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.18s ease, border 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.buttonedit-stage .effect-btn strong {
  font-size: 0.82rem;
}

.buttonedit-stage .effect-btn small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.68rem;
}

.buttonedit-stage .effect-btn:hover {
  transform: translateY(-2px);
  border-color: #2997ff;
}

.buttonedit-stage .effect-btn.is-active {
  background: #2997ff;
  color: #05060a;
  border-color: #2997ff;
  box-shadow: 0 12px 28px rgba(41, 151, 255, 0.35);
}

.buttonedit-stage .effect-btn.is-active small {
  color: #05060a;
}

.buttonedit-arena.arena-muted .effect-btn {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.05);
}

.buttonedit-stage .effect-slider {
  border-radius: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.buttonedit-stage .effect-slider__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.buttonedit-stage .effect-slider__value {
  font-weight: 600;
  color: #fff;
}

.buttonedit-stage .effect-slider input[type="range"] {
  width: 100%;
  accent-color: var(--blue-accent);
}

.buttonedit-arena.arena-unwrapped {
  flex-direction: column;
  align-items: stretch;
  padding: 40px;
}

.buttonedit-arena.arena-unwrapped .belt {
  position: static;
  width: 100%;
  flex-direction: row;
  justify-content: flex-start;
  background: transparent;
  border: none;
  max-width: none;
  overflow: visible;
  padding: 6px 0;
}

.buttonedit-arena.arena-unwrapped .canvas-core {
  margin-top: 20px;
}

@media (max-width: 1100px) {
  #main.buttonedit {
  border-radius: 0;
    flex-direction: column;
    height: auto;
  }

  .buttonedit #controls {
  border-radius: 0;
    width: 100%;
  }

  .buttonedit-arena {
  border-radius: 0;
    padding: 32px;
    grid-template-columns: 1fr;
  }

  .buttonedit-arena .belt {
    position: static;
    width: 100%;
    margin-bottom: 8px;
  }

  .effect-panel--left,
  .effect-panel--right {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .control-stack {
    grid-template-columns: 1fr;
  }

  .buttonedit-arena {
  border-radius: 0;
    padding: 28px;
  }

  .buttonedit-stage canvas {
  border-radius: 0;
    width: 100%;
  }
}
