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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

body {
  background: linear-gradient(135deg, #3a3a50 0%, #484868 50%, #404058 100%);
  color: #f0f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 95%;
  max-width: 900px;
  height: 98vh;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0.5rem;
}

.header-text {
  flex: 1;
}

.title {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #d8c0ff;
  text-shadow: 0 0 30px rgba(180, 140, 255, 0.5);
}

.subtitle {
  font-size: 0.85rem;
  font-style: italic;
  color: #b8b8d8;
  margin-top: 0.15rem;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.contemplator-frame {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: rgba(65, 65, 90, 0.9);
  border: 1px solid rgba(180, 140, 255, 0.45);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 40px rgba(180, 140, 255, 0.2),
    inset 0 0 40px rgba(0, 0, 0, 0.1);
}

.frame-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(180, 140, 255, 0.6);
  border-style: solid;
}

.frame-tl {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: 12px 0 0 0;
}

.frame-tr {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0;
  border-radius: 0 12px 0 0;
}

.frame-bl {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 12px;
}

.frame-br {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 12px 0;
}

.orb-container {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.orb {
  position: relative;
  width: 100%;
  height: 100%;
}

.orb-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.orb-inner {
  position: absolute;
  inset: 15%;
  background: radial-gradient(circle at 30% 30%,
    rgba(200, 180, 255, 0.9) 0%,
    rgba(139, 92, 246, 0.7) 40%,
    rgba(88, 28, 135, 0.6) 100%);
  border-radius: 50%;
  box-shadow:
    0 0 20px rgba(139, 92, 246, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.orb-ring {
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(200, 180, 255, 0.3);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.thinking-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(45, 45, 65, 0.88);
  border-radius: 8px;
  z-index: 5;
}

.thinking-label {
  color: #c0a8ff;
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.12em;
  animation: thinking-fade 2s ease-in-out infinite;
}

.thinking-dots {
  display: flex;
  gap: 0.6rem;
}

.thinking-dots span {
  width: 10px;
  height: 10px;
  background: rgba(180, 140, 255, 0.85);
  border-radius: 50%;
  animation: dot-bounce 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(180, 140, 255, 0.5);
}

.thinking-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-10px); opacity: 1; }
}

@keyframes thinking-fade {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.orb-container.thinking .orb-glow {
  animation: pulse-thinking 0.8s ease-in-out infinite;
}

.orb-container.thinking .orb-ring {
  animation: spin 3s linear infinite;
  border-color: rgba(200, 180, 255, 0.8);
  border-width: 2px;
}

@keyframes pulse-thinking {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

.contemplation-scroll {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  background: rgba(55, 55, 75, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(180, 140, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contemplation-scroll::-webkit-scrollbar {
  width: 6px;
}

.contemplation-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.contemplation-scroll::-webkit-scrollbar-thumb {
  background: rgba(180, 140, 255, 0.5);
  border-radius: 3px;
}

.contemplation-text {
  font-size: 1.2rem;
  line-height: 1.9;
  text-align: center;
  color: #f0f0ff;
  white-space: pre-wrap;
  font-style: italic;
  max-width: 90%;
}

.distraction-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(200, 140, 60, 0.2) 0%, rgba(150, 100, 40, 0.15) 100%);
  border: 1px solid rgba(200, 140, 60, 0.4);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  width: 100%;
  animation: distraction-pulse 2s ease-in-out infinite;
}

@keyframes distraction-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(200, 140, 60, 0.2); }
  50% { box-shadow: 0 0 20px rgba(200, 140, 60, 0.4); }
}

.distraction-icon {
  font-size: 1.2rem;
  animation: bird-bob 1s ease-in-out infinite;
}

@keyframes bird-bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-3px) rotate(5deg); }
}

.distraction-text {
  color: #e8c080;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.4;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-panel {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  align-items: center;
}

.meta-item {
  display: inline;
}

.meta-sep {
  color: #6666888;
}

.meta-label {
  color: #a0a0c0;
}

.meta-value {
  color: #d0d0f0;
}

.contemplate-btn {
  background: linear-gradient(135deg, rgba(180, 140, 255, 0.4) 0%, rgba(140, 100, 200, 0.5) 100%);
  border: 1px solid rgba(180, 140, 255, 0.6);
  color: #f0e8ff;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contemplate-btn:hover {
  background: linear-gradient(135deg, rgba(180, 140, 255, 0.6) 0%, rgba(140, 100, 200, 0.7) 100%);
  box-shadow: 0 0 15px rgba(180, 140, 255, 0.4);
}

.contemplate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.personality-btn,
.history-btn {
  background: transparent;
  border: 1px solid rgba(180, 140, 255, 0.4);
  color: #d0d0f0;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.personality-btn:hover,
.history-btn:hover {
  border-color: rgba(180, 140, 255, 0.6);
  color: #f0e8ff;
  background: rgba(180, 140, 255, 0.15);
}

.personality-btn {
  border-color: rgba(230, 200, 140, 0.5);
  color: #e8d8a8;
}

.personality-btn:hover {
  border-color: rgba(230, 200, 140, 0.7);
  color: #fff0c8;
  background: rgba(230, 200, 140, 0.15);
}

.personality-overlay,
.history-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 45, 60, 0.96);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.personality-overlay.open,
.history-overlay.open {
  opacity: 1;
  visibility: visible;
}

.personality-panel {
  width: 90%;
  max-width: 700px;
  max-height: 70vh;
  background: rgba(70, 65, 55, 0.97);
  border: 1px solid rgba(230, 200, 140, 0.55);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(230, 200, 140, 0.2);
}

.personality-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(230, 200, 140, 0.3);
}

.personality-header h2 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff0c0;
  letter-spacing: 0.1em;
}

.personality-close {
  background: transparent;
  border: none;
  color: #b0b0b0;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.personality-close:hover {
  color: #fff0c8;
}

.personality-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(230, 200, 140, 0.3);
}

.personality-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #b0a088;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.personality-tab:hover {
  color: #e8d8a8;
  background: rgba(230, 200, 140, 0.1);
}

.personality-tab.active {
  color: #fff0c8;
  border-bottom: 2px solid rgba(230, 200, 140, 0.7);
}

.personality-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #f0ece0;
  white-space: pre-wrap;
}

.personality-content::-webkit-scrollbar {
  width: 6px;
}

.personality-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.personality-content::-webkit-scrollbar-thumb {
  background: rgba(230, 200, 140, 0.5);
  border-radius: 3px;
}

.personality-history {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.personality-history::-webkit-scrollbar {
  width: 6px;
}

.personality-history::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.personality-history::-webkit-scrollbar-thumb {
  background: rgba(230, 200, 140, 0.5);
  border-radius: 3px;
}

.personality-history-empty {
  text-align: center;
  padding: 2rem;
  color: #a0a080;
  font-style: italic;
}

.personality-history-entry {
  background: rgba(55, 50, 40, 0.6);
  border: 1px solid rgba(230, 200, 140, 0.25);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.personality-history-entry:last-child {
  margin-bottom: 0;
}

.personality-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(230, 200, 140, 0.15);
}

.personality-history-number {
  color: #e8d8a8;
  font-weight: 500;
  font-size: 0.9rem;
}

.personality-history-date {
  color: #a0a080;
  font-size: 0.85rem;
}

.personality-history-text {
  color: #e0dcd0;
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.history-panel {
  width: 90%;
  max-width: 800px;
  height: 85vh;
  background: rgba(60, 60, 80, 0.97);
  border: 1px solid rgba(180, 140, 255, 0.45);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(180, 140, 255, 0.25);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(180, 140, 255, 0.3);
}

.history-header h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #e0d0ff;
  letter-spacing: 0.1em;
}

.history-close {
  background: transparent;
  border: none;
  color: #b0b0b0;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}

.history-close:hover {
  color: #f0e8ff;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.history-list::-webkit-scrollbar {
  width: 6px;
}

.history-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
  background: rgba(180, 140, 255, 0.5);
  border-radius: 3px;
}

.history-empty {
  text-align: center;
  padding: 3rem;
  color: #a0a0c0;
  font-style: italic;
}

.history-entry {
  background: rgba(55, 55, 75, 0.7);
  border: 1px solid rgba(180, 140, 255, 0.3);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.history-entry:last-child {
  margin-bottom: 0;
}

.history-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(180, 140, 255, 0.15);
}

.history-number {
  color: #e0d0ff;
  font-weight: 500;
  font-size: 0.95rem;
}

.history-date {
  color: #a0a0c0;
  font-size: 0.85rem;
}

.history-content {
  color: #e8e8ff;
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
  font-style: italic;
}

.history-distracted {
  background: rgba(75, 65, 55, 0.7);
  border-color: rgba(230, 180, 100, 0.45);
}

.history-distracted .history-number {
  color: #ffd8a0;
}

.history-distraction {
  color: #f0d8b0;
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}

.history-suggested {
  background: rgba(55, 65, 80, 0.7);
  border-color: rgba(140, 200, 255, 0.4);
}

.history-suggested .history-number {
  color: #b0e0ff;
}

.history-topic {
  color: #a8d8f8;
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(140, 200, 255, 0.2);
}

.interaction-panels {
  display: flex;
  gap: 0.75rem;
}

.suggest-panel,
.feedback-panel {
  flex: 1;
  background: rgba(55, 55, 75, 0.75);
  border: 1px solid rgba(180, 140, 255, 0.35);
  border-radius: 8px;
  padding: 0.75rem;
}

.feedback-panel {
  border-color: rgba(230, 200, 140, 0.35);
}

.panel-label {
  font-size: 0.75rem;
  color: #b0b0d0;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.suggest-form {
  display: flex;
  gap: 0.5rem;
}

.suggest-form input {
  flex: 1;
  background: rgba(45, 45, 65, 0.8);
  border: 1px solid rgba(180, 140, 255, 0.4);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: #f0f0ff;
  outline: none;
  transition: border-color 0.3s ease;
}

.suggest-form input::placeholder {
  color: #9090b0;
}

.suggest-form input:focus {
  border-color: rgba(180, 140, 255, 0.6);
}

.suggest-btn {
  background: linear-gradient(135deg, rgba(140, 180, 230, 0.4) 0%, rgba(100, 150, 210, 0.5) 100%);
  border: 1px solid rgba(140, 180, 230, 0.6);
  color: #e8f0ff;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.suggest-btn:hover {
  background: linear-gradient(135deg, rgba(140, 180, 230, 0.6) 0%, rgba(100, 150, 210, 0.7) 100%);
  box-shadow: 0 0 12px rgba(140, 180, 230, 0.4);
}

.suggest-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.suggest-feedback {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

.suggest-feedback.success {
  color: #a0e8c8;
}

.suggest-feedback.error {
  color: #f0a0a0;
}

.queue-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  color: #b0b0d0;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.queue-toggle:hover {
  background: rgba(180, 140, 255, 0.15);
  color: #d0d0f0;
}

.queue-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.queue-list {
  margin-top: 0.5rem;
  max-height: 120px;
  overflow-y: auto;
  background: rgba(45, 45, 65, 0.6);
  border-radius: 4px;
}

.queue-list::-webkit-scrollbar {
  width: 4px;
}

.queue-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.queue-list::-webkit-scrollbar-thumb {
  background: rgba(180, 140, 255, 0.4);
  border-radius: 2px;
}

.queue-entry {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(180, 140, 255, 0.15);
  font-size: 0.85rem;
}

.queue-entry:last-child {
  border-bottom: none;
}

.queue-position {
  color: #b0b0d0;
  flex-shrink: 0;
}

.queue-topic {
  color: #e0e0f8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-empty {
  padding: 0.75rem;
  text-align: center;
  color: #9090b0;
  font-style: italic;
  font-size: 0.85rem;
}

.feedback-form {
  display: flex;
  gap: 0.5rem;
}

.feedback-form input {
  flex: 1;
  background: rgba(45, 45, 65, 0.8);
  border: 1px solid rgba(230, 200, 140, 0.4);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: #f0f0ff;
  outline: none;
  transition: border-color 0.3s ease;
}

.feedback-form input::placeholder {
  color: #9090b0;
}

.feedback-form input:focus {
  border-color: rgba(230, 200, 140, 0.6);
}

.feedback-btn {
  background: linear-gradient(135deg, rgba(230, 200, 140, 0.4) 0%, rgba(200, 170, 100, 0.5) 100%);
  border: 1px solid rgba(230, 200, 140, 0.6);
  color: #fff8e0;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.feedback-btn:hover {
  background: linear-gradient(135deg, rgba(230, 200, 140, 0.6) 0%, rgba(200, 170, 100, 0.7) 100%);
  box-shadow: 0 0 12px rgba(230, 200, 140, 0.4);
}

.feedback-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.feedback-msg {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

.feedback-msg.success {
  color: #e8d8a8;
}

.feedback-msg.error {
  color: #f0a0a0;
}

.feedback-toggle,
.feedback-history-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  color: #b0b0d0;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.feedback-toggle:hover,
.feedback-history-toggle:hover {
  background: rgba(230, 200, 140, 0.15);
  color: #e8d8a8;
}

.feedback-arrow,
.feedback-history-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.feedback-list,
.feedback-history-list {
  margin-top: 0.5rem;
  max-height: 100px;
  overflow-y: auto;
  background: rgba(45, 45, 65, 0.6);
  border-radius: 4px;
}

.feedback-list::-webkit-scrollbar,
.feedback-history-list::-webkit-scrollbar {
  width: 4px;
}

.feedback-list::-webkit-scrollbar-track,
.feedback-history-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.feedback-list::-webkit-scrollbar-thumb,
.feedback-history-list::-webkit-scrollbar-thumb {
  background: rgba(230, 200, 140, 0.4);
  border-radius: 2px;
}

.feedback-entry {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(230, 200, 140, 0.15);
  font-size: 0.85rem;
}

.feedback-entry:last-child {
  border-bottom: none;
}

.feedback-user {
  color: #e8d8a8;
  font-weight: 500;
}

.feedback-comment {
  color: #d0d0e8;
  font-style: italic;
}

.feedback-empty {
  padding: 0.75rem;
  text-align: center;
  color: #9090b0;
  font-style: italic;
  font-size: 0.85rem;
}

.back-link {
  color: #a0a0c0;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #d0d0f0;
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(180, 150, 255, 0.7);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) translateX(50px);
    opacity: 0;
  }
}

@media (max-height: 600px) {
  .container {
    gap: 0.5rem;
  }

  .title {
    font-size: 1.3rem;
  }

  .subtitle {
    display: none;
  }

  .orb-container {
    width: 40px;
    height: 40px;
  }

  .contemplator-frame {
    padding: 1rem;
  }

  .interaction-panels {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  .interaction-panels {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .personality-btn,
  .contemplate-btn,
  .history-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}
