@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a28;
  --bg-card-hover: #222236;
  --accent: #00ff88;
  --accent-glow: rgba(0, 255, 136, 0.3);
  --accent-dim: #00cc6a;
  --accent-pink: #ff00ff;
  --accent-cyan: #00ccff;
  --accent-orange: #ff8800;
  --accent-yellow: #ffdd00;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #555570;
  --border: #252540;
  --gradient-1: linear-gradient(135deg, #0a0a1a 0%, #0d1117 50%, #0a0a1a 100%);
  --gradient-hero: linear-gradient(135deg, #0a0a1f 0%, #0d1525 30%, #0a0a1f 70%, #0f1520 100%);
  --glow-accent: 0 0 20px rgba(0,255,136,0.4), 0 0 60px rgba(0,255,136,0.1);
  --glow-pink: 0 0 20px rgba(255,0,255,0.4);
  --glow-cyan: 0 0 20px rgba(0,204,255,0.4);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 30px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body.studio-open { overflow: hidden; }

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 20px rgba(0,255,136,0.05);
  transition: var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-hero);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--border);
}

.logo-text { display: flex; flex-direction: column; }

.logo-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accent), #00ffcc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

#main-nav {
  display: flex;
  gap: 4px;
}

#main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: var(--transition);
}

#main-nav a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: var(--transition);
}

.lang-btn:hover { border-color: var(--accent); }

.lang-arrow { font-size: 10px; color: var(--text-secondary); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  box-shadow: var(--shadow);
}

.lang-dropdown.open { display: flex; }

.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  text-align: left;
  transition: var(--transition);
}

.lang-dropdown button:hover {
  background: rgba(255,255,255,0.05);
}

main {
  flex: 1;
  padding-top: 64px;
}

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0,255,136,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(0,200,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(255,0,255,0.05) 0%, transparent 50%);
  animation: heroBgShift 8s ease-in-out infinite alternate;
}

@keyframes heroBgShift {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 40px 24px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, var(--accent), #00ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-create {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-create::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan), var(--accent-pink));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-create:hover::after {
  opacity: 0.6;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00cc6a);
  color: #000;
  box-shadow: 0 0 30px var(--accent-glow);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0,255,136,0.5), 0 0 80px rgba(0,255,136,0.15);
}

.btn-primary:active { transform: translateY(0); }

.pulse {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 50px rgba(0,255,136,0.6), 0 0 70px rgba(0,200,255,0.2); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: float-up linear infinite;
  opacity: 0;
}

@keyframes float-up {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-dark {
  max-width: 100%;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark > .section-header { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-dark > .community-grid { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-dark > .community-layout { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 24px; }
.section-dark > .community-join { max-width: 1200px; margin-left: auto; margin-right: auto; }

.section-header { text-align: center; margin-bottom: 48px; }

.section-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, #aaa, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(0,255,136,0.3));
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), var(--glow-accent);
}

.project-card.active:hover {
  box-shadow: 0 8px 40px rgba(0,255,136,0.15), 0 0 30px rgba(0,255,136,0.2);
}

.project-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #00ccff);
}

.project-card.locked { opacity: 0.6; }
.project-card.locked:hover { border-color: var(--border); transform: none; box-shadow: none; }

.card-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.card-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  background: rgba(0,255,136,0.15);
  color: var(--accent);
}

.card-badge.soon {
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
}

.project-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.btn-card:hover {
  background: rgba(0,255,136,0.1);
  border-color: var(--accent);
}

.btn-card:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: var(--border);
}

.btn-card:disabled:hover {
  background: transparent;
  border-color: var(--border);
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.community-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.community-chat {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 500px;
  transition: var(--transition);
}

.community-chat:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(0,255,136,0.15);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

.chat-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.chat-status {
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
}

.chat-msg {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  max-width: 85%;
  align-self: flex-start;
}

.chat-msg .chat-user {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.chat-msg p {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.chat-msg .chat-time {
  font-size: 10px;
  color: var(--text-muted);
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}

.chat-input-area input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.chat-input-area input:focus {
  border-color: var(--accent);
}

.chat-input-area input::placeholder {
  color: var(--text-muted);
}

.btn-send {
  padding: 10px 20px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.btn-send:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-join-aipm {
  display: block;
  width: 100%;
  margin-top: 8px;
}

.community-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.community-sidebar .community-grid {
  padding: 0;
}

.community-sidebar .community-card {
  margin-bottom: 0;
}

.community-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.community-avatar {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  border: 2px solid var(--border);
}

.community-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
  font-style: italic;
}

.community-card span {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.community-join {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.community-join h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.community-join p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 14px;
}

.community-join .btn-primary {
  font-size: 14px;
  padding: 12px 28px;
}

.btn-join-aipm {
  display: block;
  width: 100%;
  margin-top: 8px !important;
}

.join-code-area {
  text-align: center;
  margin: 18px 0;
  padding: 18px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.join-code-area label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.join-code-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.join-code-input {
  background: var(--bg-primary);
  border: 2px solid var(--border);
  color: var(--accent);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: 900;
  width: 120px;
  text-align: center;
  letter-spacing: 4px;
  outline: none;
  transition: var(--transition);
  text-transform: uppercase;
}

.join-code-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.join-code-msg {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  min-height: 18px;
}

.join-code-msg.success { color: var(--accent); }
.join-code-msg.error { color: #f44; }

@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.studio-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.studio-container {
  width: 90vw;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.studio-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.btn-close {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-close:hover { background: rgba(255,0,0,0.2); border-color: #f44; }

.studio-body { display: flex; flex-direction: column; flex: 1; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: var(--bg-card);
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.tool-btn:hover { background: rgba(255,255,255,0.05); }

.tool-btn.active {
  background: rgba(0,255,136,0.15);
  border-color: var(--accent);
}

#btn-animate {
  width: auto;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
}

#btn-animate.animating {
  background: rgba(255,0,0,0.2);
  border-color: #f44;
  color: #f44;
}

#color-picker {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  padding: 2px;
}

.size-slider {
  width: 80px;
  accent-color: var(--accent);
}

.size-label {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

#effect-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.btn-secondary {
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  transition: var(--transition);
}

.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: var(--accent); }

.canvas-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: repeating-conic-gradient(var(--bg-primary) 0% 25%, transparent 0% 50%) 50% / 20px 20px;
}

#paint-canvas {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: crosshair;
  background: #fff;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

/* GD Maker */
.gd-studio { max-width: 1300px !important; }

.gd-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: var(--bg-card);
  overflow-x: auto;
}

.gd-name-input {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  width: 180px;
  outline: none;
}

.gd-name-input:focus { border-color: var(--accent); }

.gd-play-btn {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 8px 16px !important;
  font-weight: 700;
  border: none !important;
}

.gd-play-btn:hover { background: #00cc6a !important; }

.gd-play-btn.playing {
  background: #f44 !important;
  color: #fff !important;
  animation: pulse 0.8s infinite;
}

.gd-sep {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 2px;
  user-select: none;
}

.gd-ai-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.gd-ai-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  margin-right: 4px;
}

.btn-ai {
  padding: 5px 10px;
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.3);
  border-radius: var(--radius-sm);
  color: var(--accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-ai:hover {
  background: rgba(0,255,136,0.2);
  border-color: var(--accent);
}

.btn-ai-danger {
  color: #f44;
  border-color: rgba(255,0,0,0.4);
  background: rgba(255,0,0,0.08);
}

.btn-ai-danger:hover {
  background: rgba(255,0,0,0.2);
  border-color: #f44;
}

.btn-ai-ghost {
  color: #0ff;
  border-color: rgba(0,255,255,0.3);
  background: rgba(0,255,255,0.05);
}

.btn-ai-ghost:hover {
  background: rgba(0,255,255,0.15);
  border-color: #0ff;
}

.gd-ai-status {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  padding: 2px 8px;
}

.gd-search-group {
  position: relative;
  flex: 1;
  min-width: 150px;
}

.gd-search-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

.gd-search-input::placeholder { color: var(--text-muted); }
.gd-search-input:focus { border-color: var(--accent); }

#gd-canvas {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: crosshair;
  background: #1a1a2e;
  max-width: 100%;
  max-height: 60vh;
}

#gd-load-official {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

#gd-tool-bar [data-tool].active {
  background: rgba(0,255,136,0.2);
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  #main-nav { display: none; }
  .hero { min-height: 400px; }
  .hero-title { font-size: 28px; }
  .hero-desc { font-size: 15px; }
  .section { padding: 50px 16px; }
  .project-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .community-layout { flex-direction: column; }
  .community-sidebar { width: 100%; }
  .community-chat { max-height: 400px; }
  .chat-messages { max-height: 220px; }
  .gd-studio { max-width: 98vw; }
  .gd-toolbar { gap: 4px; flex-wrap: wrap; }
  .toolbar { gap: 8px; }
  .studio-container { width: 95vw; }
  #paint-canvas { width: 100%; height: 300px; }
}
