.slide-game-panel{display:grid;gap:12px}.slide-game-panel label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.slide-game-panel label .input{max-width:100%}.slide-game-panel p{font-size:12px}.presentation-slide-compact-tool-gamify svg,.presentation-slide-compact-tool-player svg{width:26px;height:24px}

.slide-game-destructible-type {
  justify-self: start;
  border-color: #d88339;
}
.destructible-modal .editor-workspace-card {
  width: min(1180px, 100%);
  height: min(900px, 96dvh);
  max-height: 96dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #101722;
  border-color: #3e4b5d;
}
.destructible-modal .editor-workspace-head {
  color: #ffc17d;
  font-size: 1.35rem;
}
.destructible-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 29%);
  gap: 18px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.destructible-preview {
  position: relative;
  align-self: start;
  border: 1px solid #374356;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 40%, #233041, #0a111b);
}
.destructible-preview canvas { display: block; width: 100%; height: auto; }
.destructible-options {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
  background: #141e2c;
  border: 1px solid #334156;
  border-radius: 12px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.destructible-options label { display: grid; gap: 5px; font-weight: 650; }
.destructible-options label:has(input[type=checkbox]) {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}
.destructible-options small { color: #b9c5d3; }
.destructible-options p:empty { display: none; }
.destructible-pattern-editor{display:grid;gap:9px;border-top:1px solid #46546a;padding-top:12px;margin-top:5px;min-width:0;}
.destructible-pattern-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;}
.destructible-pattern-actions .btn{padding:7px 9px;min-height:34px;font-size:13px;}
.destructible-pattern-actions .btn[aria-pressed=true]{border-color:#ff9b3d;background:#463421;}
.destructible-pattern-actions label{flex:1 1 130px;min-width:100px;}
.destructible-pattern-editor input[type=range]{width:100%;}
.destructible-pattern-editor [hidden],.destructible-preview [hidden]{display:none!important;}
.destructible-pattern-editor p{font-size:13px;line-height:1.4;color:#ffd19a;margin:0;}
.destructible-drawing{position:absolute;inset:0;touch-action:none;z-index:2;outline-offset:2px;}
.destructible-drawing{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Ccircle cx='4' cy='4' r='3' fill='white'/%3E%3Ccircle cx='4' cy='4' r='2' fill='black'/%3E%3C/svg%3E") 4 4,default;}
.destructible-drawing[data-eraser=true]{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13'%3E%3Ccircle cx='6' cy='6' r='5' fill='none' stroke='white' stroke-width='3'/%3E%3Ccircle cx='6' cy='6' r='5' fill='none' stroke='black'/%3E%3C/svg%3E") 6 6,default;}
.presentation-slide-field-controls > .presentation-slide-element-tool.destructible{left:-38px;right:auto;top:10px;bottom:auto;transform:none;width:26px;height:26px;padding:3px;display:grid;place-items:center;}
.presentation-slide-element-tool.destructible svg{width:20px;height:20px;}
.destructible-frame-strip {
  display: grid;
  grid-template-columns: repeat(10, minmax(74px, 1fr));
  overflow-x: auto;
  gap: 6px;
  margin: 14px 0;
  flex: none;
}
.destructible-frame-strip button {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 4px;
  background: #131d2a;
  border: 1px solid #354256;
  border-radius: 7px;
}
.destructible-frame-strip button[aria-pressed=true] {
  border-color: #ff9b3d;
  background: #3b2d20;
}
.destructible-frame-strip canvas { width: 100%; }
.destructible-frame-strip span { color: #e5edf7; font-variant-numeric: tabular-nums; }
.destructible-actions { display: flex; flex: none; align-items: center; gap: 10px; flex-wrap: wrap; }
.destructible-actions output { margin-right: auto; color: #b9c5d3; }
.destructible-edge-guide {
  position: absolute;
  z-index: 2147483007;
  pointer-events: none;
}
.destructible-edge-guide svg, .destructible-material {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.destructible-edge-guide path { fill: none; stroke: #ff9b3d; stroke-width: 3; }
.destructible-edge-divider {
  position: absolute;
  left: -4px;
  right: -4px;
  height: 18px;
  transform: translateY(-50%);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #ff9b3d;
  cursor: ns-resize;
  pointer-events: auto;
  touch-action: none;
}
.destructible-edge-divider::before {
  content: "";
  display: block;
  border-top: 2px dashed currentColor;
}
.destructible-edge-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  background: currentColor;
}
.destructible-breaking {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
.destructible-breaking > :not(.destructible-runtime) { visibility: hidden !important; }
.destructible-runtime {
  position: absolute;
  left: -200%;
  top: -200%;
  width: 500%;
  height: 500%;
  pointer-events: none;
}
@media (max-width: 650px) {
  .destructible-layout { display:flex;flex-direction:column;overflow:auto; }
  .destructible-preview { width:100%;flex:none;box-sizing:border-box; }
  .destructible-options { flex:none;overflow:visible; }
}
.slide-game-guides{position:absolute;inset:0;z-index:1000;pointer-events:none}.slide-game-guide{position:absolute;border:2px dashed #ff4747;box-sizing:border-box;pointer-events:auto;touch-action:none;cursor:move;background:#ff333315}.slide-game-guide.boundary{pointer-events:none;background:transparent;border-color:#ffb547}.slide-game-guide.spawn{border-color:#28bcff;background:transparent}.slide-game-guide canvas{width:100%;height:100%;pointer-events:none}.slide-game-guide span{position:absolute;width:12px;height:12px;border:1px solid #222;background:white}.slide-game-guide [data-corner=nw]{left:-6px;top:-6px;cursor:nwse-resize}.slide-game-guide [data-corner=ne]{right:-6px;top:-6px;cursor:nesw-resize}.slide-game-guide [data-corner=sw]{left:-6px;bottom:-6px;cursor:nesw-resize}.slide-game-guide [data-corner=se]{right:-6px;bottom:-6px;cursor:nwse-resize}
.slide-game-runtime{position:absolute;inset:0;width:100%;height:100%;z-index:150;object-fit:fill;touch-action:none}.slide-game-runtime:focus-visible{outline:2px solid #28bcff;outline-offset:-2px}

.slide-game-group-runtime{position:absolute;inset:0;pointer-events:none}.slide-game-group-runtime canvas{pointer-events:auto}.slide-field-co{padding:2px 5px!important;font-size:10px!important;flex:0 0 auto}.slide-field-co-menu{display:flex;gap:3px}.slide-field-co-menu button{font-size:11px;padding:3px}

.slide-game-guide.passive{pointer-events:none}.slide-game-guide.spawn.passive{border:0}.slide-game-guides:has(.spawn.passive){z-index:auto}

.slide-game-guide:not(.passive){z-index:1000}

.slide-field-co-menu:popover-open{display:flex;background:#17212e;color:#fff;border:1px solid #718096;border-radius:6px;padding:6px;margin:0;gap:6px}

.presentation-slide-maker-preview .slide-game-guides{z-index:2147483006}
.presentation-slide-maker-preview .slide-game-guides:has(.spawn.passive){z-index:auto}
.presentation-slide-maker-preview .slide-game-guide:not(.passive){z-index:2147483006}

.presentation-slide-maker-preview .slide-game-guides.adjusting-collider,.presentation-slide-maker-preview .slide-game-guides.adjusting-collider:has(.spawn.passive){pointer-events:auto;z-index:2147483647;cursor:default}
.slide-game-guides.adjusting-collider .slide-game-guide [data-corner]{width:16px;height:16px;border:2px solid #fff;border-radius:3px;background:#ff9b21;box-shadow:0 0 0 1px #783d00}
.slide-game-guides.adjusting-collider .slide-game-guide [data-corner=nw]{left:-8px;top:-8px}
.slide-game-guides.adjusting-collider .slide-game-guide [data-corner=ne]{right:-8px;top:-8px}
.slide-game-guides.adjusting-collider .slide-game-guide [data-corner=sw]{left:-8px;bottom:-8px}
.slide-game-guides.adjusting-collider .slide-game-guide [data-corner=se]{right:-8px;bottom:-8px}

.slide-game-runtime,.slide-game-group-runtime canvas{pointer-events:none}

.slide-game-guide.reverse-collider{border-color:#7dd3fc;background:#7dd3fc12;}

.slide-game-collider-list{display:grid;gap:4px;min-width:0;}
.slide-game-collider-row{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:4px;min-width:0;}
.slide-game-collider-row .btn{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:5px 8px;text-align:left;}
.slide-game-collider-row .slide-game-collider-delete{text-align:center;padding:3px;font-size:18px;}

.slide-game-adjust-toggle{white-space:nowrap}.slide-game-adjust-toggle[aria-pressed="true"]{border-color:#ff9b21;background:#ff9b2126;color:#fff}
.slide-game-guide[data-shape]{border:0;background:transparent}.slide-game-fitted-outline{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;fill:#ff333315;stroke:#ff4747;stroke-width:2;stroke-dasharray:5 3}
.slide-game-shape-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0}
.slide-game-panel .slide-game-shape-icon{color:#ff4747;min-width:0;min-height:48px;display:flex;align-items:center;justify-content:flex-start;padding:8px 12px;border-radius:12px}
.slide-game-shape-icon svg,.slide-game-collider-row svg{width:32px;height:32px;flex-shrink:0;color:#ff4747}
.slide-game-polygon-tool{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;min-width:0}
.slide-game-polygon-tool>label{flex-wrap:nowrap;gap:8px}.slide-game-polygon-tool input{width:64px;min-width:48px}
.slide-game-collider-row>.btn:first-child{display:flex;align-items:center;gap:8px}

.slide-game-physics-toggle{display:flex;align-items:center;gap:8px;position:relative;cursor:pointer;}
.slide-game-physics-toggle input{position:absolute;opacity:0;width:40px;height:24px;margin:0;}
.slide-game-physics-pill{pointer-events:none;width:40px;height:24px;border-radius:999px;background:#555;display:inline-block;flex-shrink:0;position:relative;}
.slide-game-physics-pill::after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff;transition:transform .15s;}
.slide-game-physics-toggle input:checked+.slide-game-physics-pill{background:var(--header-font-color,#f7f4ea);}
.slide-game-physics-toggle input:checked+.slide-game-physics-pill::after{transform:translateX(16px);background:var(--page-bg,#172026);}
.slide-game-physics-toggle input:focus-visible+.slide-game-physics-pill{outline:2px solid #facc15;outline-offset:3px;}
.slide-game-launch-pad{width:100%;height:120px;background:#ffffff0a;touch-action:none;cursor:crosshair;overflow:hidden;border-radius:10px;}
.slide-game-launch-pad svg{width:100%;height:100%;}
.slide-game-panel details summary{cursor:pointer;}
.slide-game-pass-divider{position:absolute;left:-24px;width:calc(100% + 48px);height:18px;margin-top:-9px;padding:0;border:0;background:transparent;cursor:ns-resize;z-index:3;touch-action:none}
.slide-game-pass-divider::before{content:"";position:absolute;left:0;right:0;top:8px;border-top:3px solid #28bcff;box-shadow:0 0 2px #000}
.slide-game-pass-divider::after{content:"↕";position:absolute;left:calc(50% - 12px);top:-3px;width:24px;height:24px;line-height:24px;border-radius:50%;background:#28bcff;color:#001c2d;font-size:18px}
.slide-game-pass-region{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.slide-game-guides button.slide-game-pass-divider{max-width:none;width:calc(100% + 48px)}
.slide-game-platform-options{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.slide-game-platform-options>label{margin:0}
.slide-game-teleport-options{display:flex;flex-direction:column;gap:10px;padding:10px;border:1px solid #ffffff30;border-radius:10px}
.slide-game-teleport-options>label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.slide-game-teleport-options p{margin:0}.slide-game-teleport-options select{max-width:100%}
.slide-game-teleport-dialog{background:var(--page-bg,#172026);color:var(--header-font-color,#f7f4ea);border:1px solid #ffffff50;border-radius:14px;width:min(620px,90vw);max-height:85dvh;overflow:auto;padding:20px}
.slide-game-teleport-dialog::backdrop{background:#0009}.slide-game-teleport-dialog h2{margin:0 0 16px}.slide-game-teleport-list{display:flex;flex-direction:column;gap:8px}.slide-game-teleport-list button{text-align:left;white-space:normal}

.slide-game-response-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.slide-game-response-row>input[type=range]{flex:1;min-width:100px;accent-color:#ff9b21}.slide-game-response-row output{font-size:12px;white-space:nowrap}.slide-game-response-row label{font-size:12px}.slide-game-weight-label{font-size:12px;font-weight:700}.slide-game-weight-label[data-color=blue]{color:#60a5fa}.slide-game-weight-label[data-color=green]{color:#4ade80}.slide-game-weight-label[data-color=neutral]{color:#f7f4ea}.slide-game-weight-label[data-color=purple]{color:#c084fc}.slide-game-weight-label[data-color=red]{color:#f87171}

.slide-game-teleport-travel{min-width:0;display:grid;gap:6px;margin:0;padding:8px;border:1px solid #ffffff30;border-radius:8px}.slide-game-teleport-travel label{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px}.slide-game-teleport-travel select{min-width:0;max-width:65%;font-size:12px}.slide-game-teleport-travel input[type=number]{width:75px;padding:4px}
