body {
  min-height: 100vh;
  background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
  font-family: "Noto Sans JP", sans-serif;
  isolation: isolate;
  overflow-y: scroll;
}

h1 {
  font-family: "Yuji Boku", serif;
}

.tab-border {
  border-bottom: 2px solid #e0e0e0;
}

.tab-button {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab-button.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.controls-wrapper {
  min-height: 380px;
}

svg {
  width: 250px;
  height: 250px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

#backgroundUnis {
  pointer-events: none;
  z-index: 10002;
}

.main-container {
  max-width: 800px;
  position: relative;
  z-index: 10000;
}

.input-width-narrow {
  width: 80px;
}

.input-width-color {
  width: 60px;
  height: 50px;
}

.select-width-narrow {
  width: 120px;
}

.textarea-editor {
  height: 200px;
  font-family: "Courier Prime", monospace;
}

.footer-credits {
  color: #4a5568;
  font-size: 0.9rem;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.share-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.background-uni {
  position: fixed;
  width: 40px;
  height: 40px;
  pointer-events: auto;
  z-index: 10002;
}

.background-uni svg {
  width: 100%;
  height: 100%;
  filter: none;
}

@keyframes burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

.particle {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
}

@keyframes bounce {
  0% {
    transform: translate(var(--x), var(--y));
  }
  100% {
    transform: translate(var(--x-end), var(--y-end));
  }
}

@media (max-width: 768px) {
  svg {
    width: 200px;
    height: 200px;
  }
}
