* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  background-image: url('/static/hl_background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
  display: flex;
  min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
  width: 220px;
  background-color: #111;
  padding: 2rem 1rem;
  border-right: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar a {
  color: #90caf9;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: center;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  margin: 0 -0.65rem;
}

.sidebar a:hover {
  color: #fff;
  background: #1e1e1e;
  border-left-color: #37C980;
}

.sidebar a.active {
  color: #fff;
  background: #1a2a1e;
  border-left-color: #37C980;
}

.sidebar-locked {
  color: #444;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: center;
  border-radius: 6px;
  border-left: 2px solid transparent;
  margin: 0 -0.65rem;
  cursor: default;
  user-select: none;
}

.sidebar-logo {
  text-align: center;
  margin-bottom: 1rem;
}

.sidebar-logo img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;         /* Full screen height */
  width: 100vw;          /* Full screen width */
  padding: 2rem;
  box-sizing: border-box;
}

.login-container {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  text-align: center;
}


.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.login-container input[type="text"],
.login-container input[type="password"],
.login-container input[type="submit"] {
  width: 100%;
  margin-bottom: 1rem;
}

.btn-primary {
  width: 100%;
  padding: 10px;
  background: linear-gradient(to right, #1e90ff, #0066ff);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 -2px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(to right, #0066ff, #1e90ff);
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), inset 0 -2px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.05);
}



.user-info {
  font-size: 0.85rem;
  color: #888;
  margin-top: auto;
}

.container {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 700px;
  min-width: 500px;
  text-align: center;
}
.center-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.center-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.logo-placeholder {
  width: 100%;
  height: 80px;
  background-color: #1e293b;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #90caf9;
}

/* Main content */
.main-container {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Flash messages */
.flash-banner {
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  margin-bottom: 1rem;
  border-radius: 6px;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.flash-banner.hidden {
  opacity: 0;
  pointer-events: none;
}

.flash-banner.show {
  display: block;
}

.flash-banner.success {
  background-color: #2ecc71; /* ✅ green */
  color: white;
}

.flash-banner.error,
.flash-banner.danger {
  background-color: #e74c3c; /* ❌ red */
  color: white;
}

.flash-banner.warning {
  background-color: #f39c12; /* ⚠️ yellow-orange */
  color: white;
}

.flash-banner.info {
  background-color: #3498db; /* ℹ️ blue */
  color: white;
}

/* Tables */
.user-table {
  width: 100%;
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  border-collapse: collapse;
  margin-top: 2rem;
}

.user-table th,
.user-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.95rem;
}

.user-table tr {
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background 0.2s ease;
}

.user-table tr:hover {
  background-color: #2a2a2a;
}

.user-table thead {
  background-color: #111;
  font-weight: bold;
}


.level-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.level-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.level-description {
  margin-top: 1.5rem;
}

.level-two-panel {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: stretch;
  /* max-width: 1200px; */
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
  min-height: 0;
}

.level-info,
.level-interaction {
  flex: 1 1 0;
  min-width: 0;
  background-color: rgba(0, 0, 0, 0.7);
  /* padding: 2rem; */
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  height: 100%;
  justify-content: space-between;
}

.level-info {
  /* padding: 2rem; */
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* ensure child scrolls */
}

.level-info-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 1rem; /* give scrollbar some space */
}

.level-image img {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.level-interaction {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Chat Section */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* prevents overflow expansion */
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  background-color: #102436;
  padding: 1rem;
  border-radius: 8px;
  /* margin-bottom: 1rem; */
  box-sizing: border-box;
}

.chat-bubble {
  max-width: 70%;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.chat-bubble.user {
  background-color: #64b5f6;
  color: #0d1b2a;
  align-self: flex-end;
  margin-left: auto;
  border-top-right-radius: 0;
}

.chat-bubble.bot {
  background-color: #2c3e50;
  color: #fff;
  border-top-left-radius: 0;
}

.detection-banner {
  width: 100%;
  background-color: #0d1f2d;
  border: 1px solid #1e3a52;
  border-left: 3px solid #37C980;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.detection-banner-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #37C980;
  margin-bottom: 4px;
}

.detection-banner-desc {
  font-size: 0.88rem;
  color: #ccc;
  margin-bottom: 6px;
  line-height: 1.4;
}

.detection-banner-link {
  font-size: 0.8rem;
  color: #90caf9;
  text-decoration: none;
}

.detection-banner-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.detection-banner-link:hover {
  text-decoration: underline;
}

/* Detection info modal */
.detection-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 4000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.detection-modal-overlay.open {
  display: flex;
}

.detection-modal {
  position: relative;
  background-color: #0d1f2d;
  border: 1px solid #1e3a52;
  border-radius: 12px;
  padding: 1.75rem;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.detection-modal h3 {
  margin: 0 0 1rem;
  color: #37C980;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.detection-modal p {
  margin: 0;
  color: #ccc;
  font-size: 0.92rem;
  line-height: 1.6;
}

#detectionModalDetails {
  color: #ccc;
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

#detectionModalDetails h2 {
  color: #37C980;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

#detectionModalDetails h3 {
  color: #9ee8c2;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1rem 0 0.4rem;
}

#detectionModalDetails p {
  margin: 0 0 0.75rem;
  color: #ccc;
}

#detectionModalDetails a {
  color: #37C980;
  text-decoration: underline;
}

#detectionModalDetails a:hover {
  color: #9ee8c2;
}

#detectionModalDetails strong {
  color: #fff;
}

@media (max-width: 600px) {
  .detection-modal {
    max-height: 90vh;
    padding: 1.25rem 1rem;
  }
}

.detection-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.detection-modal-close:hover {
  color: #fff;
}

.thinking-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  height: 1.2em;
}

.thinking-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #90caf9;
  animation: thinking-bounce 1.2s infinite ease-in-out both;
}

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

@keyframes thinking-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes toolPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.tool-call-line {
  display: block;
  color: #90caf9;
  font-size: 0.92em;
}

.tool-call-line.active {
  animation: toolPulse 1.5s ease-in-out infinite;
}

.chat-input-row {
  display: flex;
  align-items: stretch; /* Match height */
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.chat-input-row textarea {
  flex: 1;
  resize: none;
  height: 42px;
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: inherit;
  color: #333;
}

.chat-input-row button {
  height: 42px;
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 600;
  /* background: linear-gradient(to right, #1e90ff, #0066ff); */
  background-color: #37C980;
  color: #102436;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.2s ease;
}

/*.chat-input-row button:hover {
  background: linear-gradient(to right, #0066ff, #1e90ff);
}*/

.chat-input-row,
.flag-box {
  flex-shrink: 0;
}

/* Mobile info strip - hidden on desktop, shown on mobile */
.mobile-info-strip {
  display: none;
}

/* Flag Box */
.flag-box {
  margin-top: 2rem;
  background-color: #102436;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  text-align: center;
  width: 100%;
}

.flag-box input {
  width: 60%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.flag-box button {
  background-color: #37C980;
  padding: 10px 20px;
  color: #102436;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/*.flag-box button:hover {
  background-color: #2ecc71;
}*/


.chat-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.clear-chat-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s ease;
}

.clear-chat-btn:hover {
  color: #f56c6c;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 400px;
}
.close-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
/* Flag submission modal */
.flag-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.flag-modal-overlay.open {
  display: flex;
}

.flag-modal {
  background-color: #0d1f2d;
  border: 1px solid #1e3a52;
  border-radius: 12px;
  padding: 1.5rem;
  width: 88%;
  max-width: 380px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.flag-modal h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

.flag-modal input[type="text"] {
  width: 100%;
  margin-bottom: 0.75rem;
}

.flag-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.flag-modal-actions .btn-cancel {
  flex: 1;
  background-color: #2a3a4a;
  color: #ccc;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  font-family: inherit;
}

.flag-modal-actions button:not(.btn-cancel) {
  flex: 1;
}

.flag-modal-result {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}

/* Raffle ticket popup */
.raffle-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.raffle-overlay.open {
  display: flex;
}

.raffle-modal {
  position: relative;
  background: linear-gradient(160deg, #0d1f2d 0%, #142233 100%);
  border: 1px solid #1e3a52;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 0 40px rgba(55, 201, 128, 0.08), 0 0 80px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.raffle-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.raffle-close-btn:hover {
  color: #fff;
}

.raffle-badge {
  display: inline-block;
  background: #37C980;
  color: #0d1f2d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.raffle-title {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.raffle-subtitle {
  color: #ccc;
  font-size: 1rem;
  margin: 0 0 1.25rem;
}

.raffle-ticket-img-wrapper {
  margin: 0 auto 1.25rem;
  max-width: 340px;
}

.raffle-ticket-img {
  width: 100%;
  border-radius: 10px;
  border: 2px dashed #1e3a52;
  padding: 4px;
  box-sizing: border-box;
}

.raffle-booth-info {
  color: #bbb;
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.raffle-booth-info strong {
  color: #37C980;
}

.raffle-revisit-hint {
  font-size: 0.78rem;
  color: #555;
  margin: -0.75rem 0 1.5rem;
}

.raffle-user-id {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #0a1820;
  border: 1px solid #1e3a52;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 1.25rem;
  text-align: left;
}

.raffle-user-id-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #37C980;
  white-space: nowrap;
  flex-shrink: 0;
}

.raffle-user-id-value {
  font-family: monospace;
  font-size: 0.9rem;
  color: #fff;
  word-break: break-all;
  line-height: 1.4;
}

.raffle-continue-btn {
  background: #37C980;
  color: #0d1f2d;
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: background 0.2s ease;
}

.raffle-continue-btn:hover {
  background: #2daf6e;
}

/* Sidebar bottom section */
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
}

.sidebar-continue-btn {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #555;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s;
}

.sidebar-continue-btn:hover {
  color: #aaa;
}

.sidebar-level-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-level-group a {
  margin: 0;
}

.sidebar-raffle-btn {
  width: 100%;
  background-color: #37C980;
  color: #0d1f2d;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(55, 201, 128, 0.2);
}

.sidebar-raffle-btn:hover {
  background-color: #2daf6e;
  box-shadow: 0 4px 12px rgba(55, 201, 128, 0.35);
}

.raffle-modal-final {
  background: linear-gradient(160deg, #1a1000 0%, #2a1800 50%, #0d1f2d 100%);
  border: 1px solid rgba(255, 185, 0, 0.25);
}

.raffle-badge-final {
  background: linear-gradient(90deg, #c8960c, #f0c040);
  color: #1a1000;
}

.raffle-continue-btn-final {
  background: linear-gradient(90deg, #c8960c, #f0c040);
  color: #1a1000;
}

.raffle-continue-btn-final:hover {
  background: linear-gradient(90deg, #b07d0a, #d4a830);
}

.sidebar-raffle-sub {
  margin-top: 0;
  margin-bottom: 0;
  padding: 5px 10px 5px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  background-color: transparent;
  color: #37C980;
  border: 1px solid rgba(55, 201, 128, 0.4);
  border-left: 2px solid #37C980;
  box-shadow: none;
  border-radius: 0 6px 6px 0;
  letter-spacing: 0.01em;
  width: calc(100% - 16px);
  margin-left: 16px;
  text-align: left;
  opacity: 0.85;
}

.sidebar-raffle-sub:hover {
  background-color: rgba(55, 201, 128, 0.1);
  border-color: #37C980;
  opacity: 1;
  box-shadow: none;
}

.sidebar-user-id-block {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 8px 10px;
}

.sidebar-user-id-label {
  font-size: 11px;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.sidebar-user-id-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-user-id-row span {
  font-family: monospace;
  font-size: 14px;
  color: #ccc;
  word-break: break-all;
  line-height: 1.5;
  flex: 1;
}

.sidebar-copy-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  color: #888;
  font-size: 14px;
  line-height: 1;
  font-weight: normal;
}

/* Submit Flag FAB - hidden by default, shown via mobile media query */
/* Mobile FAB container - hidden by default, shown via mobile media query */
.mobile-fab-container {
  display: none;
}

.submit-flag-fab {
  display: none;
}

/* Hints FAB - hidden by default, shown via mobile media query */
.hints-fab {
  display: none;
}

/* Desktop Hints button row - shown on desktop, hidden on mobile */
.hints-desktop-row {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
}

.hints-desktop-btn {
  background-color: #37C980;
  color: #102436;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}

.loading-screen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
}
.llm-container {
  max-width: 1300px;  
  margin: 2rem auto;
  padding: 0 1rem;
}
.prompt-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}
#promptInput,
#promptForm button {
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  border-radius: 6px;
  border: none;
}
#promptForm button {
  background-color: #37C980;
  color: #102436;
  font-weight: bold;
}
.prompt-form textarea {
  resize: vertical; 
}
.llm-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap;  
}
.output-box {
  background-color: #00132E;
  color: #fff;
  border-radius: 12px;
  width: 380px;
  height: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.model-title {
  font-size: 1rem;
  text-align: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #333;
  background-color: #1a1a1a;
  flex-shrink: 0;
}

.model-title img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
}

.output-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  scrollbar-width: thin;
}

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

.output-content::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 4px;
}

.response-timer {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.5rem;
  text-align: right;
  padding-right: 1rem;
  font-family: monospace;
}

.ctf-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #444;
}

.ctf-tabs a {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #90caf9;
  border-bottom: 3px solid transparent;
  font-weight: bold;
}

.ctf-tabs a.active {
  color: white;
  border-bottom-color: #1e90ff;
}

.button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

/* Already defined or add */
.btn-primary {
  background: linear-gradient(to right, #1e90ff, #0066ff);
  color: white;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(to right, #0066ff, #1e90ff);
}

.btn-secondary {
  background-color: #333;
  color: white;
  border: none;
}

.btn-secondary:hover {
  background-color: #555;
}

.challenge-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.challenge-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a1a;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
}

.challenge-item:hover {
  background-color: #222;
}

.challenge-title a {
  color: #90caf9;
  text-decoration: none;
  font-weight: 500;
}

.challenge-title a:hover {
  text-decoration: underline;
}

.challenge-actions a {
  margin-left: 0.5rem;
  font-size: 1.1rem;
  text-decoration: none;
}

.challenge-actions a:hover {
  opacity: 0.8;
}



/* Form fields */
input[type="text"],
input[type="password"],
textarea,
select {
  font-size: 1rem;
  font-family: inherit;
  padding: 10px;
  border-radius: 6px;
  border: none;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  /* margin-bottom: 1rem; */
}

button {
  font-size: 1rem;
  font-family: inherit;
  font-weight: bold;
  padding: 10px;
  border-radius: 6px;
  border: none;
  /*background: linear-gradient(to right, #1e90ff, #0066ff);*/
  background-color: #37C980;
  color: #102436;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* button:hover {
  background: linear-gradient(to right, #0066ff, #1e90ff);
} */
.level2-interaction {
  flex: 1.5 1 0; /* grows 1.5x faster than the default flex: 1 left panel */
}

@media (min-width: 1400px) {
  .level-two-panel {
    max-width: 1800px;
  }

  .level-info,
  .level-interaction {
    max-width: none; /* Remove any max-widths limiting panel growth */
    flex: 1 1 0;      /* Allow equal growth for both panels */
  }

  /* .level2-interaction {
    flex: 1.5 1 0;
  } */
  
  .level-info-scroll,
  .chat-container {
    padding: 2rem;
    padding-bottom: 0rem;
  }

  .chat-log {
    font-size: 1rem;
  }
}

@media (max-height: 900px) {
  .level-image img {
    max-height: 250px;
  }

  .flag-box {
    padding: 1rem;
    margin-top: 1rem;
  }

  .level-description {
    font-size: 0.95rem;
  }
}

/* --- Filter bar layout --- */
/* --- Filter bar layout (unchanged structure) --- */
.filters {
  background: rgba(255,255,255,0.06);
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.filter-row {
  display: flex;
  align-items: center;      /* keep everything vertically centered */
  flex-wrap: wrap;
  gap: 14px;
}

/* Use a single height for all controls */
:root { --ctl-h: 36px; }

/* Label + control pair */
.filters label {
  display: inline-flex;
  align-items: center;      /* align label text with its control */
  gap: 8px;
  margin: 0;
  font-weight: 500;
  color: #d9e7ff;
  white-space: nowrap;
}

/* Normalize all input/select heights & baseline */
.filters select,
.filters input[type="datetime-local"] {
  height: var(--ctl-h);
  line-height: var(--ctl-h);   /* helps most browsers */
  padding: 0 10px;             /* zero out vertical padding to avoid mismatches */
  border-radius: 6px;
  border: 1px solid #2f3b4a;
  background: #0f1822;
  color: #e9eef6;
  font-size: 0.95rem;
  box-sizing: border-box;
  vertical-align: middle;
  appearance: none;            /* consistent look for selects */
}

.filters input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1); /* make black icon white */
  opacity: 0.9;
}

/* Safari/WebKit tweak: datetime-local can be taller; clamp it */
@supports (-webkit-appearance: none) {
  .filters input[type="datetime-local"] {
    -webkit-appearance: none;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Actions on the same line, pushed to the right */
.actions {
  margin-left: auto;           /* pushes buttons to the right end of the row */
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Buttons same height as inputs */
.btn-primary,
.btn-secondary {
  height: var(--ctl-h);
  line-height: var(--ctl-h);
  padding: 0 14px;             /* horizontal padding only */
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.btn-primary { background: #1e90ff; color: #fff; }
.btn-primary:hover { background: #1777d3; }

.btn-secondary { background: #46556a; color: #fff; }
.btn-secondary:hover { background: #5a6c85; }

/* --- Lighten table background for readability --- */
/* --- Soft table theme --- */
.log-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
}
.log-table--soft thead th {
  position: sticky; top: 0;
  background: #0f1f2d;       /* keep header dark for contrast */
  color: #eef6ff;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
}
.log-table--soft tbody td {
  background: #f6f7fb;       /* soft light background */
  color: #1a2430;            /* dark text for readability */
  border-bottom: 1px solid #e3e7ef;
  padding: 10px 12px;
  vertical-align: top;
}
.log-table--soft tbody tr:nth-child(odd) td {
  background: #ffffff;        /* subtle zebra */
}
.log-table--soft tbody tr:hover td {
  background: #eef2f9;        /* hover highlight */
}
.log-table--soft code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  color: #0b3b77;
}
tr.flag-found > td {
  background-color: #d1f7d1 !important; /* override zebra/td styles */
}

/* Skill editor */
.skill-editor-textarea {
  width: 100%;
  min-height: 260px;
  margin-top: 1rem;
  padding: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d4e6f1;
  background-color: #0d1f2d;
  border: 1px solid #2a4a63;
  border-radius: 8px;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 0;
}

.skill-editor-textarea:focus {
  border-color: #1e90ff;
}

/* Hidden on desktop, shown on mobile via media query */
.textarea-drag-handle {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
  cursor: ns-resize;
  touch-action: none;
}

.drag-handle-bar {
  width: 40px;
  height: 4px;
  background-color: #37C980;
  border-radius: 2px;
}

.skill-editor-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.skill-editor-actions button {
  height: 42px;
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 600;
  background-color: #37C980;
  color: #102436;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

/* Mobile styles */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
  z-index: 1000;
}

.mobile-header-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ccc;
  letter-spacing: 0.03em;
}

.hamburger-btn {
  background: none;
  border: 1px solid #444;
  color: #fff;
  font-size: 1.2rem;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

@media (max-width: 1024px) {
  body {
    flex-direction: column;
    min-height: 100dvh;
  }

  .mobile-header {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 48px;
    left: -260px;
    width: 220px;
    height: calc(100dvh - 48px);
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay.open {
    display: block;
  }

  .main-container {
    padding: 1rem;
    padding-top: calc(48px + 1rem);
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: visible;
  }

  .level-title {
    display: none;
  }

  .level-two-panel {
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: auto;
    padding: 0;
    gap: 1rem;
  }

  .level-info {
    display: none;
  }

  .mobile-info-strip {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
  }

  .mobile-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    cursor: pointer;
    user-select: none;
  }

  .mobile-info-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
  }

  .mobile-info-chevron {
    background: none;
    border: none;
    color: #666;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.25s ease, color 0.15s;
    font-family: inherit;
  }

  .mobile-info-strip.expanded .mobile-info-chevron {
    transform: rotate(180deg);
    color: #37C980;
  }

  .mobile-info-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1rem;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
  }

  .mobile-info-strip.expanded .mobile-info-body {
    max-height: 350px;
    opacity: 1;
    padding: 0.75rem 1rem;
  }

  .mobile-info-body .level-description {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #ccc;
    margin-top: 0;
    margin-bottom: 0.6rem;
  }

  .level-interaction {
    flex: 1;
    min-height: 0;
    height: auto;
    padding: 0.75rem;
  }

  .chat-container {
    flex: 1;
    min-height: 0;
  }

  .chat-log {
    flex: 1;
    min-height: 0;
  }

  .chat-bubble {
    max-width: 90%;
  }

  .level-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .level-description {
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
  }

  .skill-editor-textarea {
    min-height: 200px;
    resize: none;
  }

  .textarea-drag-handle {
    display: flex;
  }

  /* Hide the flag-box from the left panel on mobile */
  .flag-box {
    display: none;
  }

  /* Shared container for both mobile FABs */
  .mobile-fab-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: fixed;
    top: 0.6rem;
    right: 1rem;
    z-index: 1500;
  }

  /* Submit Flag FAB */
  .submit-flag-fab {
    display: flex;
    align-items: center;
    background-color: #37C980;
    color: #102436;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    font-family: inherit;
  }

  /* Hints FAB */
  .hints-fab {
    display: flex;
    align-items: center;
    background: rgba(10, 15, 25, 0.88);
    border: 1px solid rgba(251, 191, 36, 0.55);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 6px rgba(251, 191, 36, 0.2);
    padding: 0.4rem 0.9rem;
    font-size: 1.0rem;
    cursor: pointer;
    font-family: inherit;
  }

  /* Hide the desktop hints button row on mobile */
  .hints-desktop-row {
    display: none;
  }

}

/* --- History Panel --- */

.chat-header {
  gap: 0.75rem;
}

.history-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s ease;
}

.history-btn:hover {
  color: #37C980;
}

.chat-container {
  position: relative;
}

.history-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 100%;
  height: 100%;
  background: #1a1a1a;
  border-left: 1px solid #333;
  border-radius: 0 8px 8px 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.history-panel.open {
  transform: translateX(0);
}

.history-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #333;
  font-size: 0.85rem;
  color: #ccc;
  font-weight: 600;
  flex-shrink: 0;
}

.history-close-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.history-close-btn:hover {
  color: #fff;
}

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

.history-entry {
  border-radius: 8px;
  border: 1px solid #252525;
  margin-bottom: 0.5rem;
  background: #141414;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.history-entry:hover {
  border-color: #3a3a3a;
}

.history-entry.expanded {
  border-color: #37C980;
}

.history-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  gap: 0.75rem;
  user-select: none;
}

.history-entry-name {
  font-size: 0.83rem;
  font-weight: 500;
  color: #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.history-entry-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.history-entry-time {
  font-size: 0.67rem;
  color: #4a4a4a;
}

.history-entry-chevron {
  font-size: 0.65rem;
  color: #fff;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  display: inline-block;
}

.history-entry.expanded .history-entry-chevron {
  transform: rotate(180deg);
}

.history-entry-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.history-entry.expanded .history-entry-body {
  max-height: 500px;
}

.history-entry-code {
  margin: 0;
  padding: 0.9rem 1rem;
  font-family: "Fira Mono", "Cascadia Code", monospace;
  font-size: 0.78rem;
  line-height: 1.75;
  color: #d4d4d4;
  background: #181818;
  border-top: 1px solid #252525;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}

.history-load-btn {
  display: block;
  width: calc(100% - 1.8rem);
  margin: 0.6rem 0.9rem;
  padding: 0.45rem;
  background: transparent;
  border: 1px solid #2e2e2e;
  color: #37C980;
  border-radius: 6px;
  font-size: 0.76rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
  letter-spacing: 0.02em;
}

.history-load-btn:hover {
  background: #37C980;
  border-color: #37C980;
  color: #000;
  font-weight: 600;
}

.history-loading,
.history-empty {
  text-align: center;
  color: #444;
  font-size: 0.82rem;
  padding: 2rem 0;
}

/* ===== Hints Drawer ===== */

.hints-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3500;
  align-items: flex-end;
}

.hints-overlay.open {
  display: flex;
}

.hints-overlay.animating {
  display: flex;
}

.hints-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #0d1f2d;
  border: 1px solid #1e3a52;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom);
}

.hints-overlay.open .hints-sheet {
  transform: translateY(0);
}

.hints-drag-handle {
  width: 40px;
  height: 4px;
  background: #2e4a60;
  border-radius: 2px;
  margin: 0.75rem auto 0.25rem;
  flex-shrink: 0;
}

.hints-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.25rem 1rem 0.6rem;
  flex-shrink: 0;
}

.hints-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.hints-close-btn {
  position: absolute;
  top: 0;
  right: 0.9rem;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  font-family: inherit;
}

.hints-close-btn:hover {
  color: #fff;
}

.hints-carousel-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 0;
  padding: 0 0.75rem;
  gap: 0.6rem;
}

.hints-track-outer {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.hints-track {
  display: flex;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.hint-card {
  flex: 0 0 100%;
  position: relative;
  background: #0a1929;
  border: 1px solid #1e3a52;
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hint-card-watermark {
  position: absolute;
  top: 0.4rem;
  right: 0.75rem;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(55, 201, 128, 0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-family: 'Courier New', monospace;
}

.hint-card-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #c9d1d9;
  margin: 0;
  text-align: center;
  transition: filter 0.4s ease, opacity 0.4s ease;
  filter: blur(7px);
  opacity: 0.5;
  user-select: none;
}

.hint-card-text.revealed {
  filter: blur(0);
  opacity: 1;
  user-select: auto;
}

.hint-reveal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}

.hint-reveal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.hint-reveal-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 25, 41, 0.88);
  border: 1px solid rgba(55, 201, 128, 0.45);
  color: #37C980;
  border-radius: 50px;
  padding: 0.55rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(4px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hint-reveal-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(55, 201, 128, 0.3);
  background: rgba(10, 25, 41, 0.98);
}

.hint-reveal-btn:active {
  transform: scale(0.97);
}

.hints-arrow {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #1e3a52;
  background: #0a1929;
  color: #90caf9;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  font-family: inherit;
}

.hints-arrow:hover:not(:disabled) {
  background: #1a2a3a;
  border-color: #37C980;
  color: #37C980;
}

.hints-arrow:active:not(:disabled) {
  transform: scale(0.9);
}

.hints-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.hints-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0 0.4rem;
  flex-shrink: 0;
}

.hints-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e4a60;
  transition: background 0.25s, width 0.25s, border-radius 0.25s;
  display: inline-block;
}

.hints-dot.active {
  background: #37C980;
  width: 18px;
  border-radius: 3px;
}

.hints-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1.5rem 0.9rem;
  border-top: 1px solid #1e3a52;
  font-size: 0.8rem;
  color: #90caf9;
  line-height: 1.4;
  text-align: center;
  flex-shrink: 0;
}

.hints-footer i {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .hints-sheet {
    max-height: 88vh;
  }
}

@media (max-width: 520px) {
  .hints-carousel-wrapper {
    padding: 0 0.4rem;
    gap: 0.4rem;
  }

  .hint-card {
    padding: 1.2rem 1rem;
    min-height: 130px;
  }
}