body {
  font-family: "DM Sans", sans-serif;
  background-color: #f8f7f4;
  color: #1a1a1a;
}
.neobrutal-border {
  border: 2px solid #1a1a1a;
  box-shadow: 4px 4px 0 #1a1a1a;
}
.neobrutal-button {
  border: 2px solid #1a1a1a;
  transition: all 0.15s ease;
}
.neobrutal-button:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #1a1a1a;
}
.neobrutal-button:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.neobrutal-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.card {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  will-change: transform;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 #1a1a1a;
}
.modal-bg {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  }
}
.message-card {
  aspect-ratio: 0.8;
  display: flex;
  flex-direction: column;
  background: white;
  border: 3px solid #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  min-height: 400px;
  contain: layout style paint;
}
.message-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #1a1a1a;
}
.card-header {
  background: #f8f7f4;
  border-bottom: 2px solid #1a1a1a;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}
.card-body {
  flex: 1;
  padding: 30px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-message {
  text-align: center;
  font-size: 17px;
  line-height: 1.5;
  color: #1a1a1a;
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .card-message {
    font-size: 14px;
    line-height: 1.4;
  }
  .card-body {
    padding: 25px 20px;
  }
}
@media (min-width: 640px) and (max-width: 767px) {
  .card-message {
    font-size: 15px;
    line-height: 1.4;
  }
}
.card-footer {
  background: #f8f7f4;
  border-top: 2px solid #1a1a1a;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.card-context {
  color: #666;
  font-weight: 500;
}
.heart-button {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-weight: 600;
  transition: all 0.1s ease;
  cursor: pointer;
}
.heart-button:hover:not(:disabled) {
  color: #ff4757;
  transform: scale(1.05);
}
.heart-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.heart-button.hearted {
  color: #ff4757;
}
.heart-button.processing {
  opacity: 0.7;
  pointer-events: none;
}
.copy-button {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-weight: 600;
  transition: all 0.1s ease;
  border: 2px solid #1a1a1a;
  padding: 8px 16px;
  border-radius: 6px;
  background: white;
}
.copy-button:hover {
  background: #f0f0f0;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 #1a1a1a;
}
.copy-button.copied {
  background: #4ade80;
  color: white;
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-slide-in {
  animation: modalSlideIn 0.15s ease-out;
}
.modal-content-wrapper {
  width: 100%;
  max-width: min(90vw, 450px);
  margin: 0 auto;
}
.message-square {
  aspect-ratio: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  border: 3px solid #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 4px 4px 0 #1a1a1a;
}
.message-square-header {
  background: #f8f7f4;
  border-bottom: 2px solid #1a1a1a;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  min-height: 48px;
}
.message-square-body {
  flex: 1;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  min-height: 0;
}
.message-square-text {
  text-align: center;
  font-size: clamp(13px, 3vw, 16px);
  line-height: 1.4;
  color: #1a1a1a;
  font-weight: 500;
  max-height: 100%;
  overflow-y: auto;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.message-square-footer {
  background: #f8f7f4;
  border-top: 2px solid #1a1a1a;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  flex-shrink: 0;
  min-height: 40px;
}
.loading-spinner {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.loading-pulse {
  animation: pulse 0.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}
.emotion-tag {
  display: inline-block;
  padding: 6px 12px;
  margin: 3px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  border: 2px solid #1a1a1a;
  transition: transform 0.1s ease;
}
.emotion-tag:hover {
  transform: scale(1.05);
}
.error-message {
  background: #fef2f2;
  border: 2px solid #ef4444;
  color: #dc2626;
  padding: 16px;
  border-radius: 8px;
  margin: 20px;
  text-align: center;
  font-weight: 600;
}
.retry-button {
  background: #ef4444;
  color: white;
  border: 2px solid #dc2626;
  padding: 8px 16px;
  border-radius: 6px;
  margin-top: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s ease;
}
.retry-button:hover {
  background: #dc2626;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 #b91c1c;
}
.cards-grid > * {
  will-change: transform;
}
.creator-profile {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 40;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.creator-toggle {
  background: white;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 3px 3px 0 #1a1a1a;
  transition: all 0.15s ease;
  font-size: 20px;
}
.creator-toggle:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #1a1a1a;
}
.creator-card {
  background: white;
  border: 2px solid #1a1a1a;
  border-radius: 12px;
  box-shadow: 4px 4px 0 #1a1a1a;
  padding: 20px;
  width: 280px;
  margin-bottom: 10px;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.creator-card.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.creator-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.creator-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  object-fit: cover;
  background: #f8f7f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}
.creator-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
}
.creator-info p {
  font-size: 12px;
  margin: 2px 0 0 0;
  color: #666;
  font-weight: 500;
}
.creator-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.creator-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f8f7f4;
  border: 2px solid #1a1a1a;
  border-radius: 6px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.creator-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 #1a1a1a;
  background: #eeede9;
}
.creator-link i {
  width: 14px;
  font-size: 14px;
}
@media (max-width: 480px) {
  .modal-content-wrapper {
    max-width: 95vw;
  }
  .message-square-header {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 40px;
  }
  .message-square-body {
    padding: 12px;
  }
  .message-square-text {
    font-size: clamp(12px, 4vw, 14px);
  }
  .message-square-footer {
    padding: 6px 12px;
    font-size: 10px;
    min-height: 32px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .message-card {
    min-height: 350px;
  }
  .emotion-tag {
    font-size: 11px;
    padding: 4px 8px;
  }
  .creator-profile {
    bottom: 15px;
    left: 15px;
  }
  .creator-toggle {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  .creator-card {
    width: calc(100vw - 40px);
    max-width: 260px;
    padding: 16px;
  }
  .creator-header {
    gap: 10px;
    margin-bottom: 12px;
  }
  .creator-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .creator-info h3 {
    font-size: 14px;
  }
  .creator-info p {
    font-size: 11px;
  }
  .creator-links {
    gap: 6px;
  }
  .creator-link {
    padding: 5px 8px;
    font-size: 11px;
  }
  .creator-link i {
    font-size: 12px;
  }
}
