.page-gatolang-try {
  --bg: #0b0f15;
  --text: #e6edf3;
  --nav-bg: rgba(10, 14, 20, 0.95);
  --nav-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --footer-bg: #0a0f17;
  --footer-text: #8f9db3;
  background: radial-gradient(1200px 500px at 10% 0%, #142033 0%, #0b0f15 55%, #070a0f 100%);
  color: var(--text);
}

.page-gatolang-try .header {
  background: rgba(7, 11, 17, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(16px);
  top: 0;
  left: 0;
  right: 0;
}

.page-gatolang-try .nav-menu a,
.page-gatolang-try .nav-menu a:link,
.page-gatolang-try .nav-menu a:visited,
.page-gatolang-try .nav-menu a:active {
  color: #e2e8f0;
  letter-spacing: 0.01em;
}

.page-gatolang-try .nav-menu a:hover,
.page-gatolang-try .nav-menu a:hover:visited,
.page-gatolang-try .nav-menu a:hover:link,
.page-gatolang-try .nav-menu a:hover:active {
  color: #ffffff;
}

.page-gatolang-try .btn {
  cursor: pointer;
}

.page-gatolang-try .btn-ghost {
  cursor: pointer;
}

.page-gatolang-try .try-layout {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.page-gatolang-try .try-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 32px;
}

.page-gatolang-try .try-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 0.6rem;
}

.page-gatolang-try .try-hero p {
  font-size: 1.1rem;
  color: #b4c0d4;
  margin-bottom: 1.4rem;
}

.page-gatolang-try .try-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-gatolang-try .health-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(110, 203, 255, 0.2);
  background: rgba(15, 23, 42, 0.8);
  font-size: 0.95rem;
}

.page-gatolang-try .health-pill.is-ok {
  border-color: rgba(34, 197, 94, 0.45);
}

.page-gatolang-try .health-pill.is-error {
  border-color: rgba(239, 68, 68, 0.5);
}

.page-gatolang-try .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
}

.page-gatolang-try .health-pill.is-ok .status-dot {
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

.page-gatolang-try .health-pill.is-error .status-dot {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.page-gatolang-try .btn {
  background-color: #2563eb;
}

.page-gatolang-try .btn-ghost {
  background-color: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.page-gatolang-try .btn-ghost:hover {
  background-color: transparent;
}

.page-gatolang-try .try-hero-hint {
  display: grid;
  gap: 12px;
}

.page-gatolang-try .hint-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 12px 16px;
  border-radius: 14px;
  color: #c7d2fe;
  font-weight: 500;
}

.page-gatolang-try .try-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

.page-gatolang-try .editor-panel,
.page-gatolang-try .output-panel {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(5, 8, 12, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.page-gatolang-try .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  gap: 12px;
}

.page-gatolang-try .panel-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-gatolang-try .panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.page-gatolang-try .run-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-align: center;
  min-width: 92px;
}

.page-gatolang-try .run-label {
  display: inline-block;
  text-align: center;
}

.page-gatolang-try .run-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.page-gatolang-try .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: transparent;
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}

.page-gatolang-try .run-btn.is-running .spinner {
  display: inline-block;
}

.page-gatolang-try .run-status {
  font-size: 0.9rem;
  color: #94a3b8;
  min-width: 130px;
  text-align: right;
}

.page-gatolang-try .code-shell {
  position: relative;
  flex: 1;
  min-height: 360px;
  background: rgba(2, 6, 23, 0.9);
}

.page-gatolang-try .code-highlight {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 16px 18px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e2e8f0;
  pointer-events: none;
  overflow: hidden;
}

.page-gatolang-try #code-editor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: transparent;
  caret-color: #e2e8f0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: none;
  overflow: auto;
}

.page-gatolang-try #code-editor:focus {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: -2px;
}

.page-gatolang-try .token-comment {
  color: #64748b;
}

.page-gatolang-try .token-string {
  color: #fca5a5;
}

.page-gatolang-try .token-number {
  color: #fbbf24;
}

.page-gatolang-try .token-keyword {
  color: #60a5fa;
}

.page-gatolang-try .token-type {
  color: #a78bfa;
}

.page-gatolang-try .token-builtin {
  color: #34d399;
}

.page-gatolang-try .token-operator {
  color: #f472b6;
}

.page-gatolang-try .token-punctuation {
  color: #94a3b8;
}

.page-gatolang-try .tabs {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-gatolang-try .tab-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5f5;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
}

.page-gatolang-try .tab-btn.is-active {
  background: rgba(37, 99, 235, 0.25);
  border-color: rgba(59, 130, 246, 0.8);
  color: #eff6ff;
}

.page-gatolang-try .output-body {
  flex: 1;
  padding: 16px 18px 20px;
}

.page-gatolang-try .output-pane {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 300px;
  white-space: pre-wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.page-gatolang-try .output-pane.is-active {
  display: block;
}

.page-gatolang-try .output-pane#output-stderr {
  color: #fca5a5;
}

.page-gatolang-try .output-pane#output-meta {
  color: #a5b4fc;
}

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

@media (max-width: 900px) {
  .page-gatolang-try .try-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-gatolang-try .try-grid {
    grid-template-columns: 1fr;
  }

  .page-gatolang-try .run-status {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .page-gatolang-try .try-hero h1 {
    font-size: 2.1rem;
  }

  .page-gatolang-try .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-gatolang-try .panel-actions {
    width: 100%;
    justify-content: space-between;
  }
}
