@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;900&display=swap");

:root {
  --accent: #ec4899; /* pink-500 */
  --accent-hover: #db2777; /* pink-600 */
  --glass: rgba(255,255,255,.5);
}

* { box-sizing: border-box; }
html, body, #root { width: 100%; height: 100%; margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  background: linear-gradient(19deg, #faaca8 0%, #ddd6f3 100%);
  color: #111;
}
body.greenScreen { background: #00ff00 !important; }

.canvas-wrap { position: fixed; inset: 0; }

.ui {
  position: fixed; inset: 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px; z-index: 10;
}
.card {
  align-self: flex-start; backdrop-filter: blur(8px);
  background: var(--glass); color:#111; padding: 12px 16px; border-radius: 12px;
  pointer-events: auto;
}
.card h1 { font-weight: 900; margin: 0; font-size: 18px; }
.card p { margin: 4px 0 0; }

.right-buttons { display:flex; flex-direction:column; gap:12px; align-items:flex-end; }
.icon-btn {
  pointer-events:auto; border:0; border-radius:10px; padding:12px;
  background: var(--accent); color:#fff; cursor:pointer;
}
.icon-btn:hover { background: var(--accent-hover); }

.bottom-bar {
  pointer-events: auto;
  max-width: 720px; width: 100%; margin: 0 auto;
  display: flex; gap: 8px; align-items: center;
}
.input {
  flex:1; padding: 14px 16px; border-radius: 10px; border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.6); backdrop-filter: blur(6px);
  outline: none; color:#111;
}
.send-btn {
  border:0; border-radius:10px; padding: 14px 24px; text-transform: uppercase; font-weight: 600;
  background: var(--accent); color:#fff; cursor:pointer;
}
.send-btn:hover { background: var(--accent-hover); }
.send-btn:disabled { opacity:.35; cursor: not-allowed; }

.toast {
  position: fixed; left:50%; transform: translateX(-50%);
  bottom: 16px; padding: 8px 12px; border-radius: 8px;
  background: rgba(0,0,0,.7); color: #fff; font-size: 12px;
}
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex; gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.55);
  border-top: 1px solid rgba(255,255,255,0.15);
  z-index: 30;
  backdrop-filter: blur(6px);
}
.bottom-bar .input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(20,20,20,0.8);
  color: #fff;
  outline: none;
}
.bottom-bar .send-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #1f8fff;
  color: #fff;
  cursor: pointer;
}
.bottom-bar .send-btn:disabled { opacity: .6; cursor: not-allowed; }
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex; gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.55);
  border-top: 1px solid rgba(255,255,255,0.15);
  z-index: 30;
  backdrop-filter: blur(6px);
}
.bottom-bar .input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(20,20,20,0.8);
  color: #fff;
  outline: none;
}
.bottom-bar .send-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: #1f8fff;
  color: #fff;
  cursor: pointer;
}
.bottom-bar .send-btn:disabled { opacity: .6; cursor: not-allowed; }

.toast {
  position:fixed; left:50%; transform:translateX(-50%); bottom:10%; z-index:25;
  background:#111; color:#fff; padding:10px 14px; border-radius:8px; border:1px solid #333; font-size:14px;
}
.canvas-wrap { position:fixed; inset:0; }
html,body { height:100%; margin:0; background:#000; overflow:hidden; font-family:system-ui, sans-serif; }

.lil-gui.autoPlace {
    right: 0px;
}