* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  background: #f5f5f5;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #4b93ff;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
[hidden] {
  display: none !important;
}
.menubar {
  height: 52px;
  position: relative;
  z-index: 90;
  border-bottom: 1px solid #eaeaea;
  background: #f5f5f5e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
  backdrop-filter: blur(16px);
}
nav,
.status {
  display: flex;
  align-items: center;
  gap: 16px;
}
nav button {
  padding: 4px 0;
  font-size: 13px;
  color: #979797;
}
nav button:hover {
  color: #111;
}
nav .brand {
  color: #676767;
  font-weight: 600;
}
.monogram {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 40px;
  width: 45px;
}
.monogram svg {
  height: 30px;
  width: 36px;
  fill: none;
  stroke: #111;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.status {
  font-size: 12px;
  color: #9a9a9a;
  gap: 13px;
}
.status > button:first-child {
  font-size: 17px;
  padding: 3px;
  color: #8b8b8b;
}
.edit-link {
  color: #1683d2;
  font-weight: 500;
}
.edit-link span {
  margin-right: 6px;
}
#clock {
  min-width: 62px;
  font-variant-numeric: tabular-nums;
}
.wifi {
  font-size: 17px;
}
#canvas-viewport {
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 700px;
}
.stage {
  position: relative;
  width: 1440px;
  height: 1000px;
  background-image: radial-gradient(#00000021 1px, transparent 1.3px);
  background-size: 34.238px 34px;
  transform-origin: top left;
  isolation: isolate;
}
.stage.lines {
  background-image:
    linear-gradient(#0000000b 1px, transparent 1px),
    linear-gradient(90deg, #0000000b 1px, transparent 1px);
}
.stage.none {
  background-image: none;
}
.object {
  position: absolute;
  user-select: none;
  touch-action: none;
  cursor: grab;
  transform-origin: top left;
  will-change: transform;
  animation: appear 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: var(--delay, 0s);
}
.object.dragging {
  cursor: grabbing;
  animation: none;
  filter: drop-shadow(0 8px 9px #0002);
}
.object.selected:after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px dashed #358aff;
  border-radius: 7px;
  pointer-events: none;
}
.object img,
.object video {
  user-select: none;
  -webkit-user-drag: none;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sticker img {
  object-fit: contain;
}
.sticker:hover img {
  filter: drop-shadow(0 2px 4px #0002);
}
.emote {
  white-space: nowrap;
  font-family: Arial, sans-serif;
  font-size: 24px;
  letter-spacing: -0.72px;
}
.spin img {
  animation: spin 0.8s linear infinite paused;
}
.spin:hover img,
.spin:focus-visible img {
  animation-play-state: running;
}
.nametag {
  width: 96px;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px #0002;
  text-align: center;
}
.nametag .tag-top {
  height: 22px;
  background: #ee1422;
  color: white;
  font-family: Arial, sans-serif;
  padding: 3px;
  line-height: 7px;
}
.tag-top strong {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.tag-top small {
  font-size: 6px;
}
.nametag .tag-body {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Comic Sans MS', cursive;
  font-weight: bold;
  font-size: 19px;
  letter-spacing: -1px;
}
.nametag .tag-bottom {
  height: 7px;
  background: #ee1422;
}
.nametag.blue .tag-top,
.nametag.blue .tag-bottom {
  background: #1842f4;
}
.center {
  width: 580px;
  text-align: center;
  padding: 0 10px;
  cursor: grab;
}
.center h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 96px;
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -5.5px;
  margin: 0;
}
.center .intro {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.6px;
  margin: 20px 0 34px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}
.action-stack {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.pill {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid #919191;
  border-radius: 28px;
  height: 40px;
  padding: 0 22px;
  font-size: 18px;
  letter-spacing: -0.45px;
  background: linear-gradient(#fff 0%, #fafafa 30%, #dcdcdc 82%, #f5f5f5 100%);
  box-shadow:
    inset 0 2px 2px white,
    0 13px 24px #00000015;
  white-space: nowrap;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.pill.blue {
  border-color: #7891b9;
  background: linear-gradient(#e7f3ff 0%, #bedfff 36%, #79b8ff 79%, #b5d6ff 100%);
  box-shadow:
    inset 0 2px 3px #fff,
    0 10px 24px #00000015;
}
.pill:before {
  content: '';
  position: absolute;
  inset: 2px 6px 50%;
  border-radius: 30px;
  background: linear-gradient(#ffffffb5, #ffffff0d);
  pointer-events: none;
}
.pill:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 3px #fff,
    0 12px 24px #0002;
}
.pill:active {
  transform: translateY(1px) scale(0.98);
}
.pill span {
  position: relative;
}
.pill .tiny-icon {
  font-size: 19px;
}
.action-stack small {
  color: #b3b3b3;
  font-size: 12px;
  margin-top: 12px;
}
.video-window {
  padding-bottom: 26px;
}
.window {
  border: 1px solid #969696;
  background: #d9d9d9;
  border-radius: 7px;
  padding: 3px;
  box-shadow:
    0 12px 22px #0000001a,
    0 2px 4px #00000018;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.video-window:hover .window {
  box-shadow:
    0 16px 28px #0002,
    0 2px 4px #0002;
}
.window-bar {
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(110deg, #e0e0e0, #f4f4f4 48%, #dcdcdc);
  cursor: grab;
  gap: 8px;
}
.traffic {
  display: flex;
  gap: 5px;
  align-items: center;
}
.traffic-button {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid #0003;
  box-shadow: inset 0 1px 2px #fffc;
  position: relative;
}
.red {
  background: linear-gradient(#ff8e83, #ed5657);
}
.yellow {
  background: linear-gradient(#ffdc7e, #efb526);
}
.green {
  background: linear-gradient(#86e397, #34bb50);
}
.traffic button:hover:after {
  content: '×';
  position: absolute;
  inset: -2px 0 0;
  text-align: center;
  font: 11px Arial;
  color: #0009;
}
.traffic .green:hover:after {
  content: '+';
}
.window-x {
  font-size: 16px;
  color: #999;
  padding: 0;
  line-height: 16px;
}
.video-screen {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: #171717;
  aspect-ratio: var(--ratio, 16/9);
  cursor: pointer;
}
.video-screen video {
  object-fit: cover;
}
.player {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  padding: 6px;
  display: flex;
  gap: 7px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s;
  background: #12121265;
  backdrop-filter: blur(12px);
  border-radius: 6px;
  cursor: default;
}
.video-screen:hover .player,
.video-screen:focus-within .player,
.hero-video:hover .player,
.hero-video:focus-within .player {
  opacity: 1;
}
.player button {
  color: white;
  width: 18px;
  padding: 0;
  font-size: 11px;
  flex-shrink: 0;
}
.player input {
  width: 100%;
  height: 3px;
  accent-color: white;
  cursor: pointer;
  min-width: 15px;
}
.player .mute {
  font-size: 13px;
  width: 20px;
}
.caption {
  font-size: 12px;
  text-align: center;
  color: #aaa;
  margin-top: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.hero-video {
  width: 800px;
}
.hero-video .video-screen {
  aspect-ratio: 16/9;
  border: 1px solid #7c847d;
  border-radius: 18px;
  box-shadow: 0 12px 28px #0001;
}
.play-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 10px;
  align-items: center;
  background: linear-gradient(#fffd, #f0f0f0a6 35%, #b9b9b9ad 75%, #ddddddbd);
  backdrop-filter: blur(9px);
  border: 1px solid #fff6;
  box-shadow:
    inset 0 1px 3px white,
    0 3px 8px #0004;
  color: white;
  text-shadow: 0 1px 3px #0008;
  border-radius: 28px;
  padding: 10px 23px;
  font-size: 21px;
  white-space: nowrap;
  transition:
    opacity 0.2s,
    scale 0.2s;
}
.play-cta:hover {
  scale: 1.04;
}
.hero-video.active .play-cta {
  opacity: 0;
  pointer-events: none;
}
.hero-video .player {
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 10px;
}
.hero-video .player button {
  font-size: 14px;
  width: 25px;
}
.note {
  background: #fff3a2;
  width: 180px;
  padding: 20px;
  box-shadow: 2px 7px 12px #0002;
  font-family: 'Comic Sans MS', cursive;
  font-size: 18px;
  line-height: 1.35;
  min-height: 150px;
  white-space: pre-wrap;
}
.note:before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 72px;
  height: 22px;
  background: #e8ddc091;
  transform: translateX(-50%) rotate(-3deg);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 30px 28px;
  color: #aaa;
  font-size: 12px;
}
footer button {
  font-size: 12px;
  color: #969696;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.editor {
  position: fixed;
  z-index: 200;
  right: 18px;
  top: 68px;
  bottom: 20px;
  width: 340px;
  overflow-y: auto;
  border: 1px solid #aaa;
  background: #f8f8f8ef;
  backdrop-filter: blur(24px);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 80px #0003;
}
.editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.editor h2 {
  margin: 5px 0 0;
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 500;
}
.eyebrow {
  font-size: 11px;
  color: #929292;
}
.icon-button {
  font-size: 25px;
  width: 30px;
  height: 30px;
  background: #e9e9e9;
  border-radius: 50%;
}
.editor-intro {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
  margin: 16px 0 23px;
}
.editor label {
  display: block;
  font-size: 12px;
  color: #666;
  margin: 14px 0;
}
.editor input:not([type='range']):not([type='file']):not([type='color']),
.editor select {
  display: block;
  width: 100%;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 7px;
  padding: 9px 10px;
  color: #222;
  margin-top: 7px;
  outline-offset: 2px;
}
.editor-row {
  display: flex;
  gap: 16px;
}
.editor-row label {
  flex: 1;
  min-width: 0;
}
.editor input[type='range'] {
  display: block;
  width: 100%;
  margin-top: 12px;
  accent-color: #398cf7;
}
.editor input[type='color'] {
  display: block;
  width: 100%;
  height: 35px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  margin-top: 7px;
  padding: 3px;
}
.editor output {
  font-size: 11px;
  float: right;
  color: #aaa;
}
.upload-label {
  padding: 12px;
  border: 1px dashed #bbb;
  border-radius: 7px;
  text-align: center;
  cursor: pointer;
}
.upload-label input {
  display: block;
  font-size: 11px;
  max-width: 100%;
  margin-top: 10px;
}
.text-button {
  font-size: 11px;
  color: #a95757;
  padding: 0;
}
.add-section {
  border-top: 1px solid #ddd;
  margin-top: 22px;
  padding-top: 10px;
}
.add-section h3 {
  font-size: 13px;
  font-weight: 500;
}
.add-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.add-actions button {
  border: 1px solid #ccc;
  background: white;
  padding: 8px 9px;
  border-radius: 6px;
  font-size: 11px;
}
.save-status {
  font-size: 11px;
  color: #65946f;
  line-height: 1.5;
  margin-top: 23px;
}
.editor-footnote {
  font-size: 10px;
  line-height: 1.5;
  color: #aaa;
}
.modal {
  padding: 0;
  border: 0;
  background: none;
  max-width: min(850px, 92vw);
  max-height: 90vh;
  overflow: visible;
}
.modal::backdrop {
  background: #0007;
  backdrop-filter: blur(3px);
}
.modal-shell {
  border: 1px solid #8a8a8a;
  border-radius: 9px;
  background: #eee;
  padding: 4px;
  box-shadow: 0 20px 90px #0005;
  overflow: hidden;
  animation: modal-in 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.modal .window-bar {
  height: 30px;
}
.modal #modal-caption {
  font-size: 12px;
  color: #777;
}
.modal video {
  width: 100%;
  max-height: 75vh;
  display: block;
  border-radius: 4px;
  background: #111;
}
.modal-content-text {
  padding: 40px 45px;
  background: #fff;
  border-radius: 4px;
  width: min(540px, 85vw);
  line-height: 1.6;
}
.modal-content-text h2 {
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0 0 18px;
}
.modal-content-text p {
  color: #777;
}
.project-list {
  display: grid;
  gap: 10px;
}
.project-list button {
  border: 1px solid #e5e5e5;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 14px;
  text-align: left;
  display: flex;
  gap: 13px;
  align-items: center;
}
.project-list img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.project-list small {
  display: block;
  color: #aaa;
  margin-top: 4px;
}
.modal-note {
  font-size: 12px;
  color: #aaa !important;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #222d;
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 25px;
  padding: 11px 20px;
  z-index: 300;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes appear {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(25px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  .menubar {
    padding: 0 16px;
  }
  nav button:not(.brand),
  .wifi {
    display: none;
  }
  .status {
    gap: 8px;
  }
  .monogram {
    left: 43%;
  }
  .stage {
    width: 700px;
  }
  .center h1 {
    font-size: 76px;
    letter-spacing: -4px;
  }
  .center .intro {
    font-size: 18px;
    margin: 15px 0 26px;
  }
  .hero-actions {
    gap: 14px;
    flex-direction: column;
    align-items: center;
  }
  .pill {
    font-size: 17px;
    height: 40px;
  }
  .action-stack small {
    margin-top: 10px;
  }
  .emote {
    font-size: 23px;
  }
  footer {
    padding: 16px 20px 26px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }
  footer span:first-child {
    width: 100%;
  }
  .editor {
    width: calc(100% - 24px);
    right: 12px;
    top: 64px;
    bottom: 12px;
  }
  .modal-content-text {
    padding: 30px 24px;
  }
  .video-window .player {
    opacity: 1;
  }
  .status time {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 700px) {
  .center h1 {
    font-size: 100px;
  }
  .center .intro {
    font-size: 28px;
    margin: 15px 0 26px;
  }
  .hero-actions {
    gap: 14px;
  }
  .pill {
    font-size: 32px;
    height: 76px;
    padding: 0 30px;
    border-radius: 48px;
  }
  .pill .tiny-icon {
    font-size: 34px;
  }
  .action-stack small {
    font-size: 20px;
    margin-top: 12px;
  }
  .play-cta {
    font-size: 30px;
    padding: 15px 28px;
  }
}
