.modal {
  position: fixed;
  inset: 0;
  z-index: var(--app-z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: app-fade-in var(--app-transition-base);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--app-color-overlay);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: var(--app-max-width-content);
  background: var(--app-color-surface);
  border-radius: var(--app-radius-lg) var(--app-radius-lg) 0 0;
  box-shadow: var(--app-shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  animation: app-slide-up var(--app-transition-base);
}

.hint-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--app-spacing-md) var(--app-spacing-lg);
  border-bottom: 1px solid var(--app-color-border);
  flex: 0 0 auto;
}

.hint-modal__header h2 {
  margin: 0;
  font-size: var(--app-font-size-lg);
}

.hint-modal__close {
  width: 36px;
  height: 36px;
  border-radius: var(--app-radius-full);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--app-color-text-muted);
}
.hint-modal__close:active { background: var(--app-color-surface-alt); }

.hint-modal__list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--app-spacing-md) var(--app-spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--app-spacing-md);
}

.hint-modal__item {
  border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius-md);
  padding: var(--app-spacing-md);
  background: var(--app-color-surface-alt);
}

.hint-modal__item--unlocked {
  background: var(--app-color-surface);
  border-color: var(--app-color-primary);
}

.hint-modal__level {
  display: flex;
  align-items: center;
  gap: var(--app-spacing-sm);
  margin-bottom: var(--app-spacing-xs);
}

.hint-modal__level-num {
  background: var(--app-color-primary);
  color: var(--app-color-text-inverse);
  padding: 2px 8px;
  border-radius: var(--app-radius-full);
  font-size: var(--app-font-size-xs);
  font-weight: 700;
}

.hint-modal__item:not(.hint-modal__item--unlocked) .hint-modal__level-num {
  background: var(--app-color-border-strong);
  color: var(--app-color-text-muted);
}

.hint-modal__level-label {
  font-size: var(--app-font-size-sm);
  font-weight: 600;
  color: var(--app-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hint-modal__text {
  margin: 0;
  font-size: var(--app-font-size-base);
  color: var(--app-color-text);
  line-height: var(--app-line-height-relaxed);
}

.hint-modal__text em {
  color: var(--app-color-text-muted);
  font-style: italic;
}

.hint-modal__footer {
  flex: 0 0 auto;
  display: flex;
  gap: var(--app-spacing-sm);
  padding: var(--app-spacing-md) var(--app-spacing-lg);
  padding-bottom: calc(var(--app-spacing-md) + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--app-color-border);
}

.hint-modal__footer .btn { flex: 1 1 auto; }
