@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-400-normal.woff2");
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-600-normal.woff2");
  font-weight: 600;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #111810;
  color: #f5f6ed;
  font:
    18px/1.55 Inter,
    system-ui;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
  border: 1px solid #54604b;
  background: #263222;
  color: #f6f7ee;
  border-radius: 13px;
  padding: 13px 20px;
  min-height: 52px;
  text-decoration: none;
}
button:hover,
a.button:hover {
  background: #384931;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b7fc78;
  outline-offset: 3px;
}
.primary {
  background: #bcf58a !important;
  color: #17220e !important;
  border: 0 !important;
}
.danger {
  background: #742e2e;
}
input,
select,
textarea {
  background: #111810;
  color: #fff;
  border: 1px solid #65725c;
  border-radius: 10px;
  padding: 10px;
  max-width: 100%;
}
textarea {
  width: 100%;
  min-height: 110px;
}
label {
  display: block;
  margin: 10px 0;
}
h1,
h2,
p {
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 27px;
  line-height: 1.2;
}
small,
.muted {
  color: #bdc7b5;
}
.shell {
  max-width: 1440px;
  margin: auto;
  padding: 24px 36px;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #34422e;
  padding-bottom: 20px;
  margin-bottom: 30px;
}
.brand {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1px;
}
.brand b {
  color: #bcf58a;
}
.tag {
  font-size: 15px;
  border: 1px solid #516245;
  border-radius: 50px;
  padding: 7px 13px;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 65vh;
}
.eyebrow {
  color: #b7ee87;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero p {
  max-width: 620px;
  font-size: 22px;
  color: #c1cab9;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}
.panel {
  background: #1b2518;
  border: 1px solid #3a4832;
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 22px;
}
.preview {
  background: #dfe6d2;
  color: #213016;
  padding: 40px;
  border-radius: 26px;
  position: relative;
  min-height: 360px;
  transform: rotate(-2deg);
}
.preview h2 {
  font-size: 42px;
  max-width: 350px;
}
.preview .card {
  background: #f8faef;
  padding: 24px;
  border-radius: 18px;
  margin-top: 25px;
}
.stat {
  font-size: 60px;
  font-weight: 600;
}
.touchpad {
  height: 330px;
  background:
    radial-gradient(#506044 1px, transparent 1px) 0 0/20px 20px,
    #10180d;
  border: 2px solid #63734f;
  border-radius: 20px;
  display: grid;
  place-items: center;
  touch-action: none;
  user-select: none;
  margin: 20px 0;
  color: #c0d1b1;
}
.code {
  font-size: 42px;
  letter-spacing: 5px;
  font-weight: 600;
}
.screen {
  height: 100vh;
  overflow: hidden;
  background: #e9eddf;
  color: #1c2915;
  position: relative;
  padding: 6vw;
}
.screen h1 {
  max-width: 1000px;
}
.screen p {
  font-size: 28px;
  max-width: 900px;
}
.screen .eyebrow {
  color: var(--evo-accent, #91f4ca);
  font-weight: 700;
  letter-spacing: 1px;
}
.screen h1 {
  color: var(--evo-ink, #f4f7ff);
  font-weight: 800;
}
.screen p {
  color: var(--evo-muted, #b7c9e4);
}
.screen-tools {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(13, 28, 51, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--evo-ink, #f4f7ff);
  border: 1px solid rgba(109, 145, 190, 0.4);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 50;
  overflow: hidden;
  transition: all 0.25s ease;
}
.screen .screen-tools p,
.screen-tools p {
  font-size: 11px;
  max-width: none;
  margin: 0;
  line-height: 1.4;
  color: #9eb8dd;
}
.screen-tools summary.tools-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(18, 39, 68, 0.6);
  border-bottom: 1px solid rgba(109, 145, 190, 0.2);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.screen-tools summary.tools-summary::-webkit-details-marker {
  display: none;
}
.summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.summary-icon {
  font-size: 20px;
}
.summary-titles {
  display: flex;
  flex-direction: column;
}
.summary-titles strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.summary-titles small {
  font-size: 12px;
  color: var(--evo-muted, #b7c9e4);
}
.btn-toggle-screen {
  background: var(--evo-button, #20395d);
  color: #f4f7ff;
  border: 1px solid var(--evo-border, #6d91be);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}
.btn-toggle-screen:hover {
  background: var(--evo-hover, #305082);
}
.screen-tools-body {
  padding: 18px 20px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 960px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}
.tool-card {
  background: #11233e;
  border: 1px solid rgba(109, 145, 190, 0.25);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(109, 145, 190, 0.2);
  padding-bottom: 10px;
}
.badge-step {
  background: rgba(145, 244, 202, 0.15);
  color: #91f4ca;
  font-weight: 800;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(145, 244, 202, 0.3);
}
.header-titles {
  flex: 1;
}
.header-titles h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f4f7ff;
}
.header-titles small {
  font-size: 11px;
  color: #a0b6d6;
}
.card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}
.dot-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dot-status.yellow {
  background: #f5c042;
  box-shadow: 0 0 8px #f5c042aa;
}
.dot-status.green {
  background: #42e098;
  box-shadow: 0 0 8px #42e098aa;
}
.dot-status.red {
  background: #ff5c77;
  box-shadow: 0 0 8px #ff5c77aa;
}
.code-card {
  background: #08162b;
  border: 1px dashed #4b73a6;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.code-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8da9d0;
  margin-bottom: 4px;
}
.code-number {
  font-family: ui-monospace, Menlo, Monaco, monospace;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #91f4ca;
  min-height: 32px;
}
.code-note {
  display: block;
  font-size: 11px;
  color: #9ab3d6;
  margin-top: 4px;
}
.qr-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}
.qr-code-img {
  width: 105px;
  height: 105px;
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.btn-block {
  width: 100%;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-group-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.input-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.input-label {
  font-size: 12px;
  font-weight: 600;
  color: #c0d4f0;
  display: flex;
  align-items: center;
}
.file-styled {
  background: #09172d;
  border: 1px solid #3d5e8a;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  color: #d8e5f7;
  cursor: pointer;
}
.screen-note {
  font-size: 11px;
  color: #9eb8dd;
  margin: 0;
  line-height: 1.3;
}
.audio-adv-details {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(109, 145, 190, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
}
.audio-adv-details summary {
  cursor: pointer;
  color: #a4c2ea;
  font-weight: 600;
}
.adv-audio-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.btn-group-sm {
  display: flex;
  gap: 6px;
}
.button-sm {
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 6px;
  background: #1b3558;
  color: #fff;
  border: 1px solid #4a6f9f;
  cursor: pointer;
}
.micro-status-text {
  font-size: 11px;
  color: #98b3d6;
  margin: 2px 0;
}
.tools-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(109, 145, 190, 0.2);
  padding-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #92b5e2;
}
.footer-actions {
  display: flex;
  gap: 8px;
}
.help-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(145, 244, 202, 0.2);
  color: #91f4ca;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  margin-left: 6px;
  position: relative;
  flex-shrink: 0;
}
.help-bubble.light {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.help-bubble:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #061224;
  color: #f4f7ff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 400;
  white-space: normal;
  width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
  border: 1px solid #5a82b4;
  z-index: 100;
  pointer-events: none;
  line-height: 1.35;
  text-align: left;
}
.screen-tools.collapsed {
  max-width: 320px;
  border-radius: 12px;
}
.hand {
  position: fixed;
  width: var(--hand-size, 72px);
  height: auto;
  pointer-events: none;
  z-index: 10;
  filter: drop-shadow(0 3px 3px #0007);
  transform: translate(0, 0);
  transition: width 0.1s;
}
.hand path {
  fill: var(--hand-color, #bcf58a);
  stroke: #17230f;
  stroke-width: 3;
  stroke-linejoin: round;
}
.hand.pulse {
  animation: tap 0.32s;
}
.hand.double {
  animation: tap 0.22s 2;
}
.hand.grab {
  transform: rotate(-25deg) scale(0.88);
}
@keyframes tap {
  50% {
    transform: scale(0.75);
  }
}
.spot {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  background: radial-gradient(
    circle 115px at var(--x) var(--y),
    transparent 80%,
    #0009 100%
  );
}
.trail {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fa852f;
  pointer-events: none;
  z-index: 9;
  animation: fade 1.5s forwards;
}
@keyframes fade {
  to {
    opacity: 0;
  }
}
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 500px;
  background: #542b19;
  padding: 18px;
  border-radius: 15px;
  z-index: 100;
}
.steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.step {
  padding: 7px 14px;
  min-height: 44px;
}
.selected {
  border-color: #b8f782;
  background: #40562e;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 36px;
}
.qr {
  width: 160px;
  background: white;
  border-radius: 12px;
}
.private {
  color: #bcf58a;
}
a {
  color: #c3f294;
}
footer {
  margin-top: 28px;
  color: #bdc7b5;
  font-size: 15px;
}
@media (max-width: 850px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }
  .shell {
    padding: 18px;
  }
  .hero {
    gap: 35px;
  }
  .touchpad {
    height: 280px;
  }
  .preview {
    transform: none;
  }
  header {
    align-items: flex-start;
  }
  .screen h1 {
    font-size: 44px;
  }
  .screen p {
    font-size: 22px;
  }
  .code {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.grid > * {
  min-width: 0;
}
input:not([type="range"]):not([type="color"]):not([type="file"]) {
  width: 100%;
}
header {
  flex-wrap: wrap;
}
.row > * {
  max-width: 100%;
}
.tag {
  display: inline-block;
}
.screen.overlay {
  background: transparent;
}
.screen.overlay > h1,
.screen.overlay > p {
  display: none;
}
body.overlay {
  background: transparent;
}
.comparison {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #182211;
}
.comparison img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.comparison .after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}
.comparison input {
  position: absolute;
  bottom: 95px;
  left: 10%;
  width: 80%;
  z-index: 4;
}
.comparison .caption {
  position: absolute;
  top: 10px;
  left: 20px;
  color: white;
  background: #14200ddd;
  padding: 10px;
  border-radius: 10px;
}
.replay-label {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 15;
  background: #d6f0b8;
  color: #102008;
  padding: 10px;
  border-radius: 10px;
}
.pads.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pads.dual .touchpad {
  height: 300px;
}
.pads.left-handed > div:first-child {
  order: 2;
}
#stop {
  position: sticky;
  bottom: 12px;
  z-index: 25;
  margin-top: 16px;
}
input[type="checkbox"] {
  width: auto !important;
}
.pads > * {
  min-width: 0;
}
@media (max-width: 700px) {
  .pads.dual {
    grid-template-columns: 1fr;
  }
  .pads.dual .touchpad {
    height: 250px;
  }
}
@media (orientation: landscape) and (min-width: 850px) {
  .shell:has(.pads.dual) > .grid {
    grid-template-columns: 1fr;
  }
  .pads.dual .touchpad {
    height: 40vh;
    min-height: 250px;
  }
}
.lens {
  position: fixed;
  width: 190px;
  height: 190px;
  border: 5px solid #bcf58a;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9;
  background-repeat: no-repeat;
  background-color: #e9eddf;
  box-shadow: 0 8px 35px #0008;
}
.hand[data-style="laser"] {
  width: calc(var(--hand-size, 72px) / 3);
  height: calc(var(--hand-size, 72px) / 3);
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--hand-color, #bcf58a);
  box-shadow:
    0 0 0 2px #18220e,
    0 0 14px 7px var(--hand-color, #bcf58a);
}
.hand[data-style="laser"] svg {
  display: none;
}
.hand[data-style="glow"]:after {
  content: "";
  position: absolute;
  top: 3%;
  left: 34%;
  width: 18%;
  height: 15%;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 16px 9px var(--hand-color, #bcf58a);
}
.keyrow {
  margin-top: 18px;
}
.keyrow button {
  min-width: 64px;
}
#keyboardPanel {
  border: 2px solid #b9f080;
}
#keyboardPanel textarea {
  min-height: 100px;
  max-height: 25vh;
}
@media (max-width: 700px) {
  .keyboard-open #pads,
  .keyboard-open #scriptSection {
    display: none;
  }
  .keyboard-open #keyboardPanel {
    position: relative;
    min-height: calc(var(--visible-height, 70vh) - 100px);
  }
}
dialog {
  background: #1b2518;
  color: white;
  border: 1px solid #647655;
  border-radius: 22px;
  padding: 30px;
  max-width: min(95vw, 560px);
}
dialog::backdrop {
  background: #000b;
}
